-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (35 loc) · 1.31 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
cmake_minimum_required(VERSION 3.3)
set(CMAKE_CXX_STANDARD 20)
project(SaboteurToolset)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wl,--no-undefined")
option(BUILD_SHARED_LIBS "" ON)
option(NO_OBJECTS "" ON)
option(CLI "" ON)
option(GLTF "" ON)
set(TPD_PATH ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party)
add_subdirectory(${TPD_PATH}/spike)
include(targetex)
include(version)
toolset_version()
set_target_properties(spike_cli PROPERTIES OUTPUT_NAME saboteur_toolset)
file(GLOB ZLIB_SOURCE_FILES "${TPD_PATH}/zlib/*.c")
add_library(zlib_obj OBJECT ${ZLIB_SOURCE_FILES})
target_include_directories(zlib_obj PUBLIC ${TPD_PATH}/zlib/)
set_target_properties(zlib_obj PROPERTIES POSITION_INDEPENDENT_CODE ON)
add_library(common_obj OBJECT src/hashstorage.cpp)
target_include_directories(common_obj PUBLIC include)
set_target_properties(common_obj PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_link_libraries(common_obj spike)
add_spike_subdir(megapack)
add_spike_subdir(tilepack)
add_spike_subdir(loosefiles)
add_spike_subdir(globalmap)
add_spike_subdir(texture)
add_spike_subdir(francemap)
add_spike_subdir(animpack)
add_spike_subdir(mesh)
add_spike_subdir(luapack)
add_subdirectory(hash)
add_spike_subdir(materials)
add_spike_subdir(shaders)
install(FILES "saboteur_strings.txt" DESTINATION $<IF:$<BOOL:${UNIX}>,data,bin/data>)