-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
31 lines (24 loc) · 923 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
# CMakeLists files in this project can
# refer to the root source directory of the project as ${CAVEZ_SOURCE_DIR} and
# to the root binary directory of the project as ${CAVEZ_BINARY_DIR}.
cmake_minimum_required (VERSION 3.9.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
project (Cavez VERSION 0.0.1 LANGUAGES CXX)
set(SFML_DIR "SFML_DIR_NOT_SET" CACHE PATH "Path to SFML CMake file directory")
if (${SFML_DIR} MATCHES "SFML_DIR_NOT_SET")
message( FATAL_ERROR "SFML_DIR not defined, CMake will exit." )
endif (${SFML_DIR} MATCHES "SFML_DIR_NOT_SET")
if (UNIX)
set(SFML_STATIC_LIBRARIES FALSE)
else()
# TODO investigate SHARED usage
set(SFML_STATIC_LIBRARIES TRUE)
endif()
find_package(SFML 2.5 COMPONENTS system window graphics audio REQUIRED)
add_subdirectory(src)
add_subdirectory(app)
add_subdirectory(res)
enable_testing()
add_subdirectory(test)