-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
71 lines (55 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
cmake_minimum_required(VERSION 3.28.3)
# set the project name
project(
GraphicsEngine
VERSION 1.3
DESCRIPTION "Epic Graphics"
HOMEPAGE_URL "https://jonasheinle.de/"
LANGUAGES CXX C)
set(AUTHOR "Jotrockenmitlocken")
# Set WINDOWS_CI to OFF by default
# WINDOWS CI is only able to verify successful compiling ... Windows ... lel
# i will stay on linux ...
set(WINDOWS_CI
OFF
CACHE BOOL "Enable Windows CI build options")
set(RUST_FEATURES
ON
CACHE BOOL "Enable Rust features in our project.")
include(cmake/PreventInSourceBuilds.cmake)
include(cmake/ProjectOptions.cmake)
myproject_setup_options()
myproject_global_options()
myproject_local_options()
include(cmake/SystemLibDependencies.cmake)
include(Src/GraphicsEngineVulkan/cmake/filters/SetExternalLibsFilters.cmake)
add_subdirectory(ExternalLib)
add_subdirectory(Src)
if(NOT WINDOWS_CI)
include(CTest)
enable_testing()
message(STATUS "WINDOWS_CI is OFF or not defined.")
else()
message(STATUS "WINDOWS_CI is OFF or not defined.")
endif()
if(BUILD_TESTING)
message(STATUS "Tests are enabled.!")
add_subdirectory(Test/commit)
add_subdirectory(Test/compile)
add_subdirectory(Test/perf)
add_subdirectory(Test/fuzz)
else()
message(STATUS "Tests are disabled.!")
endif()
# for correct library output needed
install(
TARGETS ${PROJECT_NAME}
CONFIGURATIONS Release
RUNTIME DESTINATION bin)
# we keep the relative paths in the install dir
# keep in mind that install dir will be in front of this relative path ...
install(DIRECTORY Resources/ DESTINATION Resources/)
install(DIRECTORY ExternalLib/IMGUI/misc/fonts/ DESTINATION ExternalLib/IMGUI/misc/fonts/)
include(InstallRequiredSystemLibraries)
include(cmake/CPackOptions.cmake)
include(CPack)