diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-20 13:03:18 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-20 13:03:18 -0400 |
commit | 304bab2aced9cae51d2e4c09f3d9e06c66ff175d (patch) | |
tree | 8397f81b893feb1cf624eee49c4fb01297aa08ad /CMakeLists.txt | |
parent | ba350484072c78e5e1a765370c22dbd76474aa39 (diff) | |
download | ether-304bab2aced9cae51d2e4c09f3d9e06c66ff175d.tar.gz ether-304bab2aced9cae51d2e4c09f3d9e06c66ff175d.tar.bz2 ether-304bab2aced9cae51d2e4c09f3d9e06c66ff175d.zip |
we can build a window app!
build type must be set to Release or it's horribly slow, and fullscreen does not work
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 58a7649..5fbf023 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -6,6 +6,13 @@ set(CMAKE_BUILD_TYPE Debug) | |||
6 | # Set directory to look for package helpers. | 6 | # Set directory to look for package helpers. |
7 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Ether_SOURCE_DIR}/cmake") | 7 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Ether_SOURCE_DIR}/cmake") |
8 | 8 | ||
9 | IF(MSVC) | ||
10 | set(SDL2 "${Ether_SOURCE_DIR}/vendor/SDL2") | ||
11 | set(SDL2IMAGEDIR "${Ether_SOURCE_DIR}/vendor/SDL2_Image") | ||
12 | set(SDL2_TTF_PATH "${Ether_SOURCE_DIR}/vendor/SDL2_ttf") | ||
13 | set(APP_ICON_RESOURCE_WINDOWS "${Ether_SOURCE_DIR}/res/appicon.rc") | ||
14 | ENDIF(MSVC) | ||
15 | |||
9 | find_package(SDL2 REQUIRED) | 16 | find_package(SDL2 REQUIRED) |
10 | find_package(SDL2_Image REQUIRED) | 17 | find_package(SDL2_Image REQUIRED) |
11 | find_package(SDL2_TTF REQUIRED) | 18 | find_package(SDL2_TTF REQUIRED) |
@@ -41,8 +48,13 @@ add_executable(Ether | |||
41 | src/menu.cpp | 48 | src/menu.cpp |
42 | src/runtime_test.cpp | 49 | src/runtime_test.cpp |
43 | vendor/fov.c | 50 | vendor/fov.c |
51 | ${APP_ICON_RESOURCE_WINDOWS} | ||
44 | ) | 52 | ) |
45 | 53 | ||
46 | set_property(TARGET Ether PROPERTY CXX_STANDARD 17) | 54 | set_property(TARGET Ether PROPERTY CXX_STANDARD 20) |
47 | set_property(TARGET Ether PROPERTY CXX_STANDARD_REQUIRED ON) | 55 | set_property(TARGET Ether PROPERTY CXX_STANDARD_REQUIRED ON) |
56 | IF(MSVC) | ||
57 | set_target_properties(Ether PROPERTIES WIN32_EXECUTABLE TRUE) | ||
58 | ENDIF(MSVC) | ||
59 | |||
48 | target_link_libraries(Ether ${ALL_LIBS}) | 60 | target_link_libraries(Ether ${ALL_LIBS}) |