-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
35 lines (25 loc) · 1.06 KB
/
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
cmake_minimum_required(VERSION 3.8)
project(gorc)
include_directories(BEFORE src/libs src)
add_definitions(-DPLATFORM_LINUX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/pkg/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/pkg/lib")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/pkg/lib")
find_package(Threads REQUIRED)
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost REQUIRED COMPONENTS filesystem)
add_library(boost INTERFACE)
target_link_libraries(boost INTERFACE ${Boost_LIBRARIES})
find_package(SFML 2 REQUIRED COMPONENTS graphics audio window system)
add_library(sfml INTERFACE)
target_link_libraries(sfml INTERFACE ${SFML_LIBRARIES})
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
add_library(glew INTERFACE)
target_link_libraries(glew INTERFACE OpenGL::GL OpenGL::GLU ${GLEW_LIBRARIES})
add_subdirectory(src)