-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (26 loc) · 1.07 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
project(Tempest LANGUAGES CXX)
cmake_minimum_required(VERSION 3.6)
set(CMAKE_CXX_STANDARD 20)
add_compile_options(-Wall -Wextra)
add_subdirectory(SDL)
file(GLOB project_SRCS
"${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/engine/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/engine/gui/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/game/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/test/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/include/engine/*.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/engine/gui/*.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/include/game/*.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/include/test/*.hpp"
)
add_executable (${PROJECT_NAME} "")
target_sources(${PROJECT_NAME} PRIVATE ${project_SRCS})
target_include_directories(${PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/include/engine
${CMAKE_CURRENT_SOURCE_DIR}/include/engine/gui
${CMAKE_CURRENT_SOURCE_DIR}/include/game
${CMAKE_CURRENT_SOURCE_DIR}/include/test
)
target_link_libraries(${PROJECT_NAME} PRIVATE SDL2main SDL2-static)