-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (43 loc) · 981 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
42
43
44
45
46
47
48
49
50
51
52
53
# How to use with mingw: (Windows)
# cmake -S . -B Build -G "MinGW Makefiles"
# cd Build
# mingw32-make
# How to use with msys2: (Windows)
# cmake -S . -B Build -G "MSYS Makefiles"
# cd Build
# make
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_COMPILER "g++")
project(
Stickman-Exploration
VERSION 0.0.1
LANGUAGES CXX
)
find_package(Threads REQUIRED)
add_executable(game
src/main.cpp
)
target_include_directories(game
PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/src"
"${CMAKE_CURRENT_SOURCE_DIR}/src/includes"
"${CMAKE_CURRENT_SOURCE_DIR}/src/class"
)
# file(CREATE_LINK "${PROJECT_SOURCE_DIR}/src/assets"
# "${CMAKE_CURRENT_BINARY_DIR}/src/assets" SYMBOLIC)
target_link_libraries(game
PRIVATE
Threads::Threads
sfml-graphics
sfml-window
sfml-system
)
target_compile_options(game
PRIVATE
-Wall -Wextra -pedantic -g -O2
)
set_target_properties(game
PROPERTIES
CXX_STANDARD 17
CXX_EXTENSIONS OFF
)