forked from Ubpa/UDRefl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (27 loc) · 838 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
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
project(UDRefl VERSION 0.11.1)
message(STATUS "[Project] ${PROJECT_NAME}")
include(cmake/InitUCMake.cmake)
Ubpa_InitUCMake(VERSION 0.6.4)
Ubpa_InitProject()
Ubpa_AddDep(UTemplate 0.7.2)
Ubpa_AddDep(USmallFlat 0.2.4)
include(cmake/Platform.cmake)
option(Ubpa_UDRefl_Build_Shared "build shared library" OFF)
option(Ubpa_UDRefl_Build_ext_Bootstrap "build ext Bootstrap" OFF)
option(Ubpa_UDRefl_include_all_StdName "switch UBPA_UDREFL_INCLUDE_ALL_STD_NAME" OFF)
if(Ubpa_BuildTest_UDRefl)
find_package(GTest QUIET)
if(GTest_FOUND)
message(NOTICE "GTest Found")
else()
message(NOTICE "GTest not Found, so we ignore some targets depending on GTest")
endif()
endif()
Ubpa_AddSubDirsRec(include)
Ubpa_AddSubDirsRec(src)
Ubpa_Export(
TARGET
DIRECTORIES
"include"
)