summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
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.
7set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Ether_SOURCE_DIR}/cmake") 7set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Ether_SOURCE_DIR}/cmake")
8 8
9IF(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")
14ENDIF(MSVC)
15
9find_package(SDL2 REQUIRED) 16find_package(SDL2 REQUIRED)
10find_package(SDL2_Image REQUIRED) 17find_package(SDL2_Image REQUIRED)
11find_package(SDL2_TTF REQUIRED) 18find_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
46set_property(TARGET Ether PROPERTY CXX_STANDARD 17) 54set_property(TARGET Ether PROPERTY CXX_STANDARD 20)
47set_property(TARGET Ether PROPERTY CXX_STANDARD_REQUIRED ON) 55set_property(TARGET Ether PROPERTY CXX_STANDARD_REQUIRED ON)
56IF(MSVC)
57 set_target_properties(Ether PROPERTIES WIN32_EXECUTABLE TRUE)
58ENDIF(MSVC)
59
48target_link_libraries(Ether ${ALL_LIBS}) 60target_link_libraries(Ether ${ALL_LIBS})