diff options
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}) |