This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangzhihao-heavykeeper/third-party/CMakeLists.txt
2022-12-06 07:42:24 +00:00

22 lines
613 B
CMake

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)