-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (45 loc) · 1.46 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cmake_minimum_required(VERSION 3.13)
project(liblinden)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_COLOR_MAKEFILE ON)
add_subdirectory(cmake)
IF (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Build type. One of: Debug Release RelWithDebInfo" FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if (CMAKE_SYSTEM_NAME STREQUAL Windows)
add_compile_definitions(LL_WINDOWS)
elseif (CMAKE_SYSTEM_NAME STREQUAL Linux)
add_compile_definitions(LL_LINUX)
elseif (CMAKE_SYSTEM_NAME STREQUAL Darwin)
add_compile_definitions(LL_DARWIN)
else ()
message(WARNING "${CMAKE_SYSTEM_NAME} not officially supported at this time")
endif()
#ucm_set_runtime(STATIC)
add_subdirectory(llcommon)
#add_subdirectory(llappearance)
add_subdirectory(llcharacter)
add_subdirectory(llcorehttp)
add_subdirectory(llinventory)
add_subdirectory(llmath)
add_subdirectory(llmessage)
add_subdirectory(llprimitive)
add_subdirectory(llvfs)
add_subdirectory(llxml)
find_package(Threads REQUIRED)
set(liblinden_SOURCE_FILES
liblinden.cpp
)
set(liblinden_HEADER_FILES
liblinden.h
)
list(APPEND liblinden_SOURCE_FILES ${liblinden_HEADER_FILES})
set_source_files_properties(${liblinden_HEADER_FILES}
PROPERTIES HEADER_FILE_ONLY TRUE )
add_library(liblinden STATIC ${liblinden_SOURCE_FILES})