-
Notifications
You must be signed in to change notification settings - Fork 21
/
CMakeLists.txt
62 lines (53 loc) · 1.52 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
cmake_minimum_required(VERSION 3.7)
project(NevolutionX)
INCLUDE(FindPkgConfig)
PKG_SEARCH_MODULE(SDL2TTF REQUIRED SDL2_ttf)
PKG_SEARCH_MODULE(SDL2IMAGE REQUIRED SDL2_image)
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
Sources/audioMenu.cpp
Sources/config.cpp
Sources/font.cpp
Sources/ftpConnection.cpp
Sources/ftpServer.cpp
Sources/infoLog.cpp
Sources/langMenu.cpp
Sources/logViewer.cpp
Sources/logViewerMenu.cpp
Sources/menu.cpp
Sources/networkManager.cpp
Sources/renderer.cpp
Sources/settingsMenu.cpp
Sources/sntpClient.cpp
Sources/subAppRouter.cpp
Sources/subsystems.cpp
Sources/timing.cpp
Sources/timeMenu.cpp
Sources/videoMenu.cpp
Sources/wipeCache.cpp
Sources/xbeLauncher.cpp
Sources/xbeScanner.cpp
3rdparty/SDL_FontCache/SDL_FontCache.c
)
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
target_link_libraries(${PROJECT_NAME}
${SDL2TTF_LIBRARIES}
${SDL2IMAGE_LIBRARIES}
${SDL2_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT})
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")