-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
54 lines (39 loc) · 1.21 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
cmake_minimum_required(VERSION 3.9)
set(CMAKE_CXX_STANDARD 17)
project(dynamick_cast)
if(USE_SFML)
message(STATUS "Using SFML")
add_compile_definitions(USE_SFML)
if((NOT DEFINED USE_SFML_MP3) OR (USE_SFML_MP3 STREQUAL ON) OR (USE_SFML_MP3 STREQUAL Yes))
set(USE_SFML_MP3_EXPERIMENTAL ON)
add_compile_definitions(USE_SFML_MP3_EXPERIMENTAL)
endif()
endif()
if((USE_QT5 STREQUAL ON) OR (USE_QT5 STREQUAL Yes))
message(STATUS "Using Qt5.")
set(USE_QT5 ON)
add_compile_definitions(USE_QT5)
endif()
if((USE_DEAR_IMGUI STREQUAL ON) OR (USE_DEAR_IMGUI STREQUAL Yes))
message(STATUS "Using Dear ImGui.")
set(USE_DEAR_IMGUI ON)
add_compile_definitions(USE_DEAR_IMGUI)
endif()
if(NOT DEFINED TIDY)
set(TIDY No)
endif()
if(NOT DEFINED STRICT)
set(STRICT No)
endif()
if(UNIX)
include_directories(SYSTEM "/usr/local/include")
link_directories(SYSTEM "/usr/local/lib")
endif()
include_directories(./include ./src ./lib)
add_executable(dynamick_cast)
add_subdirectory(lib)
add_subdirectory(src)
target_link_libraries(dynamick_cast PRIVATE main)
if((LTO STREQUAL ON) OR (LTO STREQUAL Yes))
set_property(TARGET dynamick_cast PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()