-
Notifications
You must be signed in to change notification settings - Fork 72
/
CMakeLists.txt
42 lines (32 loc) · 885 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
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
project(USRefl VERSION 0.8.1)
message(STATUS "[Project] ${PROJECT_NAME}")
include(cmake/InitUCMake.cmake)
include(cmake/UbpaUSReflAutoRefl.cmake)
Ubpa_InitUCMake(VERSION 0.6.4)
Ubpa_InitProject()
option(Ubpa_USRefl_Build_AutoRefl "build AutoRefl" OFF)
if(Ubpa_USRefl_Build_AutoRefl)
message(STATUS "USRefl build AutoRefl")
Ubpa_AddDep(UANTLR 0.2.1)
else()
message(STATUS "USRefl doesn't build AutoRefl")
endif()
Ubpa_AddDep(UTemplate 0.7.2)
Ubpa_AddSubDirsRec(include)
Ubpa_AddSubDirsRec(src)
set(installFiles "")
if(Ubpa_USRefl_Build_AutoRefl)
list(APPEND installFiles "${PROJECT_SOURCE_DIR}/cmake/UbpaUSReflAutoRefl.cmake")
endif()
Ubpa_PackageName(package_name)
install(
FILES
${installFiles}
DESTINATION "${CMAKE_INSTALL_PREFIX}/${package_name}/cmake"
)
Ubpa_Export(
TARGET
DIRECTORIES
"include"
)