generated from Husenap/cmake-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (19 loc) · 721 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required(VERSION 3.16)
project("dubu_serialize" C CXX)
include("cmake/prevent_in_source_builds.cmake")
include("cmake/standard_project_setup.cmake")
include("cmake/compiler_features.cmake")
include("cmake/compiler_warnings.cmake")
set(${PROJECT_NAME}_FOLDER
${PROJECT_NAME}
CACHE STRING "The folder that ${PROJECT_NAME} projects will be placed in.")
option(${PROJECT_NAME}_BUILD_TESTS
"If the ${PROJECT_NAME} tests are built in addition to the ${PROJECT_NAME} library."
ON)
add_subdirectory("dubu_serialize")
if(${${PROJECT_NAME}_BUILD_TESTS})
enable_testing()
include(GoogleTest)
include("thirdparty/googletest.cmake")
add_subdirectory("dubu_serialize_test")
endif()