-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathCMakeLists.txt
61 lines (51 loc) · 1.88 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
cmake_minimum_required(VERSION 3.18)
project(Super_Haxagon VERSION 3.5.0)
set(CMAKE_CXX_STANDARD 17)
set(APP_NAME "Super Haxagon")
set(APP_DESCRIPTION "A Super Hexagon Clone")
set(APP_AUTHOR "RedHat")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/source")
# If you are using containers and your IDE can't see the header files in there,
# but you still want type completion, just git clone the libraries in cmake/libraries.cmake
# and enable the -DHEADERS_FOR_IDE=TRUE CMake option.
# (for CLion this is in Build, Execution, Deployment > CMake > CMake Options)
# (you can also, like, remove the if() block too, but remember to put it back please!)
if(HEADERS_FOR_IDE)
include(cmake/libraries.cmake)
endif()
set(SOURCES
source/States/Load.cpp
source/States/Menu.cpp
source/States/Over.cpp
source/States/Play.cpp
source/States/Quit.cpp
source/States/Transition.cpp
source/States/Win.cpp
source/Factories/LevelFactory.cpp
source/Factories/PatternFactory.cpp
source/Factories/WallFactory.cpp
source/Objects/Level.cpp
source/Objects/Pattern.cpp
source/Objects/Wall.cpp
source/Core/Platform.cpp
source/Core/Game.cpp
source/Core/Metadata.cpp
source/Core/Main.cpp
source/Core/Structs.cpp)
configure_file(source/Core/Configuration.hpp.in Core/Configuration.hpp)
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
if(CMAKE_SYSTEM_NAME MATCHES "Nintendo3DS")
include(cmake/n3ds.cmake)
elseif(CMAKE_SYSTEM_NAME MATCHES "NintendoSwitch")
include(cmake/switch.cmake)
elseif(CMAKE_SYSTEM_NAME MATCHES "Nspire")
include(cmake/nspire.cmake)
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
include(cmake/linux.cmake)
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
include(cmake/windows.cmake)
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
include(cmake/macos.cmake)
else()
message(FATAL_ERROR "No viable platform to build for!")
endif()