-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (20 loc) · 890 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
cmake_minimum_required(VERSION 3.9)
project(RandomMazeGeneration)
set(CMAKE_CXX_STANDARD 11)
set(EXECUTABLE_NAME RandomMazeGeneration)
FILE(GLOB MySources "*.h" "*.cpp")
add_executable(${EXECUTABLE_NAME} ${MySources})
set(SFML_INCLUDE_DIR "SFML-2.5.0/include")
set(SFML_LIBRARY_DIR "SFML-2.5.0/lib")
set(SFML_DIR "SFML-2.5.0/lib/cmake/SFML")
####### GUI ##########
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})
link_directories(SFML_LIBRARY_DIR)
include_directories(SFML_INCLUDE_DIR)
find_package(SFML 2 REQUIRED network audio graphics window system)
if(SFML_FOUND)
message(STATUS "SFML_INCLUDE_DIR: ${SFML_INCLUDE_DIR}")
message(STATUS "SFML_LIBRARIES: ${SFML_LIBRARIES}")
message(STATUS "SFML_VERSION: ${SFML_VERSION}")
target_link_libraries(${EXECUTABLE_NAME} sfml-network sfml-audio sfml-graphics sfml-window sfml-system)
endif()