-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (24 loc) · 1.07 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
36
cmake_minimum_required(VERSION 3.12)
project(TerrenRendering)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
set(CONFIGURATION_TYPE "Debug")
find_package(glbinding REQUIRED)
include_directories(${glbinding_INCLUDE_DIRS})
set(${PROJECT_NAME}_LIBS ${${PROJECT_NAME}_LIBS} ${glbinding_LIBRARIES})
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(KEEP_RPATHS)
if (APPLE)
set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
else()
set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib")
endif()
include_directories("${PROJECT_SOURCE_DIR}/Libs/glm/include"
"${PROJECT_SOURCE_DIR}/Libs/gli/include"
)
add_executable(TerrenRendering Source/main.cpp)
add_subdirectory(Source/Engine)
add_subdirectory(Source/Renderer)
add_subdirectory(Source/Statistic)
target_link_libraries(TerrenRendering TerrenRenderingEngine TerrenRenderingRenderer TerrenRenderingStatistic ${${PROJECT_NAME}_LIBS} ${${PROJECT_NAME}_LIBS_DEBUG} ${LINKER_FLAGS} ${CONAN_LIBS})
file( COPY Resources DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/bin )