-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (37 loc) · 1.71 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
cmake_minimum_required(VERSION 3.10)
project (j3d)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
set(CMAKE_PDB_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (WIN32)
set(CMAKE_C_FLAGS_DEBUG "/W4 /MP /GF /RTCu /Od /MDd /Zi")
set(CMAKE_CXX_FLAGS_DEBUG "/W4 /MP /GF /RTCu /Od /MDd /Zi")
set(CMAKE_C_FLAGS_RELEASE "/W4 /MP /GF /O2 /Ob2 /Oi /Ot /MD /Zi /DNDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "/W4 /MP /GF /O2 /Ob2 /Oi /Ot /MD /Zi /DNDEBUG")
endif (WIN32)
option(BUILD_SHARED_LIBS OFF)
add_subdirectory(jtk)
add_subdirectory(SDL2)
add_subdirectory(j3d)
add_subdirectory(trico)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set_target_properties (jtk PROPERTIES FOLDER jtk)
set_target_properties (jtk.tests PROPERTIES FOLDER jtk)
set_target_properties (jtk.static.tests PROPERTIES FOLDER jtk)
set_target_properties (SDL2-static PROPERTIES FOLDER SDL2)
set_target_properties (SDL2main PROPERTIES FOLDER SDL2)
set_target_properties (uninstall PROPERTIES FOLDER SDL2)
set_target_properties (sdl_headers_copy PROPERTIES FOLDER SDL2)
if (WIN32)
set_target_properties (SDL2_test PROPERTIES FOLDER SDL2)
endif (WIN32)
set_target_properties (trico PROPERTIES FOLDER trico)
set_target_properties (trico.tests PROPERTIES FOLDER trico)
set_target_properties (rply PROPERTIES FOLDER trico)
set_target_properties (trico_io PROPERTIES FOLDER trico)
set_target_properties (trico_encoder PROPERTIES FOLDER trico)
set_target_properties (trico_decoder PROPERTIES FOLDER trico)
set_target_properties (lz4 PROPERTIES FOLDER trico)