aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 8f895daf3a2a137028580650a94f530079abec48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.10)

project(pathtracing)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

FILE(GLOB sources ${CMAKE_SOURCE_DIR}/src/*.cpp)

add_executable(pathtracing ${sources})

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})

# Detect and add SFML
find_package(SFML 2 REQUIRED system window graphics)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(pathtracing ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})