-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
106 lines (102 loc) · 3.81 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# this is the build file for project AxolotlEngine
# it is autogenerated by the xmake build system.
# do not edit by hand.
# project
cmake_minimum_required(VERSION 3.15.0)
cmake_policy(SET CMP0091 NEW)
project(AxolotlEngine LANGUAGES CXX C)
# target
add_library(AxolotlEngine INTERFACE incl/Logging/LogLevel.h)
target_include_directories(AxolotlEngine INTERFACE
incl
)
# target
add_executable(AxolotlEngineSamples "")
set_target_properties(AxolotlEngineSamples PROPERTIES OUTPUT_NAME "AxolotlEngineSamples")
set_target_properties(AxolotlEngineSamples PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/build/windows/x64/release")
add_dependencies(AxolotlEngineSamples AxolotlEngine)
target_include_directories(AxolotlEngineSamples PRIVATE
incl
)
target_include_directories(AxolotlEngineSamples PRIVATE
C:/Users/Inerska/AppData/Local/.xmake/packages/g/glfw/3.3.6/0f1d7b80c6f84759bc07798549faa20b/include
C:/Users/Inerska/AppData/Local/.xmake/packages/g/glad/v0.1.36/d58ee23747ff411aae74b40986460499/include
)
target_compile_definitions(AxolotlEngineSamples PRIVATE
GLFW_INCLUDE_NONE
)
target_compile_options(AxolotlEngineSamples PRIVATE
$<$<COMPILE_LANGUAGE:C>:-DNDEBUG>
$<$<COMPILE_LANGUAGE:CXX>:-DNDEBUG>
)
target_compile_features(AxolotlEngineSamples PRIVATE cxx_std_20)
if(MSVC)
target_compile_options(AxolotlEngineSamples PRIVATE $<$<CONFIG:Release>:-Ox -fp:fast>)
else()
target_compile_options(AxolotlEngineSamples PRIVATE -O3)
endif()
if(MSVC)
set_property(TARGET AxolotlEngineSamples PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
target_link_libraries(AxolotlEngineSamples PRIVATE
glfw3
opengl32
glad
user32
shell32
gdi32
)
target_link_directories(AxolotlEngineSamples PRIVATE
C:/Users/Inerska/AppData/Local/.xmake/packages/g/glfw/3.3.6/0f1d7b80c6f84759bc07798549faa20b/lib
C:/Users/Inerska/AppData/Local/.xmake/packages/g/glad/v0.1.36/d58ee23747ff411aae74b40986460499/lib
)
target_sources(AxolotlEngineSamples PRIVATE
samples/basic_window/basic_window.cpp
)
# target
add_executable(AxolotlEngineTests "")
set_target_properties(AxolotlEngineTests PROPERTIES OUTPUT_NAME "AxolotlEngineTests")
set_target_properties(AxolotlEngineTests PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/build/windows/x64/release")
add_dependencies(AxolotlEngineTests AxolotlEngine)
target_include_directories(AxolotlEngineTests PRIVATE
incl
)
target_include_directories(AxolotlEngineTests PRIVATE
C:/Users/Inerska/AppData/Local/.xmake/packages/g/glfw/3.3.6/0f1d7b80c6f84759bc07798549faa20b/include
C:/Users/Inerska/AppData/Local/.xmake/packages/g/glad/v0.1.36/d58ee23747ff411aae74b40986460499/include
C:/Users/Inerska/AppData/Local/.xmake/packages/c/catch2/2.13.9/3a1bbf28f3624149b1a6a233fc0bffc0/include
)
target_compile_definitions(AxolotlEngineTests PRIVATE
GLFW_INCLUDE_NONE
)
target_compile_options(AxolotlEngineTests PRIVATE
$<$<COMPILE_LANGUAGE:C>:-DNDEBUG>
$<$<COMPILE_LANGUAGE:CXX>:-DNDEBUG>
)
target_compile_features(AxolotlEngineTests PRIVATE cxx_std_20)
if(MSVC)
target_compile_options(AxolotlEngineTests PRIVATE $<$<CONFIG:Release>:-Ox -fp:fast>)
else()
target_compile_options(AxolotlEngineTests PRIVATE -O3)
endif()
if(MSVC)
set_property(TARGET AxolotlEngineTests PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
target_link_libraries(AxolotlEngineTests PRIVATE
glfw3
opengl32
glad
user32
shell32
gdi32
)
target_link_directories(AxolotlEngineTests PRIVATE
C:/Users/Inerska/AppData/Local/.xmake/packages/g/glfw/3.3.6/0f1d7b80c6f84759bc07798549faa20b/lib
C:/Users/Inerska/AppData/Local/.xmake/packages/g/glad/v0.1.36/d58ee23747ff411aae74b40986460499/lib
)
target_sources(AxolotlEngineTests PRIVATE
test/logging/logging_core_tests.cpp
test/main.cpp
)