diff options
| author | zhang zhihao <[email protected]> | 2022-12-06 07:42:24 +0000 |
|---|---|---|
| committer | zhang zhihao <[email protected]> | 2022-12-06 07:42:24 +0000 |
| commit | 6cef7441edd10681c2a7977fb417ffbe83a51e9b (patch) | |
| tree | 740dad3a0377a22b32cf8e2bd72d06b9c02ab953 | |
| parent | ba8be27a97e8453d08c1af01d76540578889d5d0 (diff) | |
上传新文件
| -rw-r--r-- | third-party/CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt new file mode 100644 index 0000000..b9a64e0 --- /dev/null +++ b/third-party/CMakeLists.txt @@ -0,0 +1,21 @@ +cmake_minimum_required(VERSION 3.16) +project(heavykeeper LANGUAGES CXX) +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +add_compile_options(-std=c++14 -fpermissive -O3) + +add_subdirectory(/home/zhang/桌面/heavykeeper/third-party/googletest) +enable_testing() +include_directories(${gtest_SOURCE_DIR}/include${gtest_SOURCE_DIR}) + +include_directories(../tools) +include_directories(../include) +aux_source_directory(../tools ALL_SRCS) +aux_source_directory(../HeavyKeeper ALL_SRCS) + + + +add_executable(main ${ALL_SRCS} gtest.cpp) +target_link_libraries(main gtest gtest_main) |
