forked from intrig/xenon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (31 loc) · 835 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
cmake_minimum_required(VERSION 3.11)
project(xenon VERSION 2.3.0)
configure_file(config.h.in include/xenon/config.h)
enable_testing()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
if (UNIX)
include_directories(SYSTEM "/usr/local/include")
endif ()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(FSLIB -lstdc++fs)
endif ()
add_subdirectory(xspx)
add_subdirectory(src)
add_subdirectory(tools)
add_subdirectory(unit)
add_subdirectory(examples)
add_subdirectory(perf)
#set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install)
install(DIRECTORY include/xenon
DESTINATION include
FILES_MATCHING PATTERN "*.h"
PATTERN "ict/*/*" EXCLUDE
)
install(DIRECTORY ${CMAKE_BINARY_DIR}/include/xenon
DESTINATION include
)
install(DIRECTORY xddl
DESTINATION share
FILES_MATCHING PATTERN "*.xddl"
)