forked from dracc/NevolutionX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (34 loc) · 1.17 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
cmake_minimum_required(VERSION 3.7)
project(NevolutionX)
INCLUDE(FindPkgConfig)
PKG_SEARCH_MODULE(SDL2TTF REQUIRED SDL2_ttf)
find_package(SDL2 REQUIRED)
find_package(Threads REQUIRED)
include_directories(${CMAKE_SOURCE_DIR} ${SDL2_INCLUDE_DIRS} ${THREAD_INCLUDE_DIRS} ${SDL2TTF_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/Includes)
add_executable(${PROJECT_NAME}
main.cpp
Includes/outputLine.cpp
Includes/subsystems.cpp
Includes/renderer.cpp
Includes/findXBE.cpp
Includes/font.cpp
Includes/ftpServer.cpp
Includes/ftpConnection.cpp
Includes/config.cpp
Includes/menu.cpp
Includes/langMenu.cpp
Includes/timeMenu.cpp
3rdparty/SDL_FontCache/SDL_FontCache.c
)
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
target_link_libraries(${PROJECT_NAME}
${SDL2_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${SDL2TTF_LIBRARIES})
if(MSVC)
target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX)
else()
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -pedantic)
endif()
#set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
#set (CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")