-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
41 lines (30 loc) · 974 Bytes
/
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
cmake_minimum_required(VERSION 3.16)
set(CMAKE_CXX_STANDARD 17)
project(JKPS CXX)
file(GLOB PROJECT_SOURCE_DIR "Source")
include_directories(${PROJECT_SOURCE_DIR})
file(GLOB_RECURSE SRC_SOURCES "Source/*.cpp")
file(GLOB_RECURSE SRC_HEADERS "Headers/*.hpp")
add_executable(${PROJECT_NAME} ${SRC_SOURCES} ${SRC_HEADERS})
target_compile_options(
${PROJECT_NAME} PRIVATE
-Wall
-Wextra
-Wpedantic
-Wcast-align
-Wcast-qual
-Wconversion
-Wctor-dtor-privacy
-Wenum-compare
-Wnon-virtual-dtor
-Wold-style-cast
-Woverloaded-virtual
-Wredundant-decls
-Wsign-conversion
-Wsign-promo
)
target_compile_definitions(${PROJECT_NAME} PRIVATE COMPILE_FLAGS)
target_compile_definitions(${PROJECT_NAME} PUBLIC PROGRAM_VERSION="0.3")
find_package(Threads)
find_package(SFML 2.5 COMPONENTS system window graphics REQUIRED)
target_link_libraries(${PROJECT_NAME} sfml-system sfml-window sfml-graphics ${CMAKE_THREAD_LIBS_INIT})