-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
35 lines (24 loc) · 1.03 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
# CMakeList.txt : Top-level CMake project file, do global configuration
# and include sub-projects here.
cmake_minimum_required (VERSION 3.8)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin)
set(APP_ICON_RESOURCE_WINDOWS "${CMAKE_CURRENT_LIST_DIR}/resources.rc")
project ("PlumbersDontWearTies" VERSION "0.2.0")
configure_file("${CMAKE_CURRENT_LIST_DIR}/PlumbersDontWearTies/Config.h.in" "${CMAKE_CURRENT_LIST_DIR}/PlumbersDontWearTies/Config.h")
if(MSVC)
set(SDL2_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}/SDL2/include)
if(CMAKE_SIZEOF_VOID_P EQUAL 8) # 64 bits
set(SDL2_LIB_DIRS ${CMAKE_CURRENT_LIST_DIR}/SDL2/lib/x64)
else() # 32 bits
set(SDL2_LIB_DIRS ${CMAKE_CURRENT_LIST_DIR}/SDL2/lib/x86)
endif()
set(SDL2_LIBS SDL2main SDL2 SDL2_ttf)
link_directories(${SDL2_LIB_DIRS})
else()
find_package(SDL2 REQUIRED)
set(SDL2_LIBS SDL2 SDL2_ttf)
endif()
include_directories(${SDL2_INCLUDE_DIRS})
# Include sub-projects.
add_subdirectory ("PlumbersDontWearTies")