-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
31 lines (22 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
cmake_minimum_required(VERSION 3.7.0)
project(RNR)
set(CMAKE_CXX_STANDARD 20)
include(CMake/CreateResources.cmake)
option(COMPILE_PLAYER "Compile the RNR player" ON)
option(COMPILE_STUDIO "Compile the RNR studio" ON)
option(COMPILE_SERVER "Compile the RNR server" ON)
option(COMPILE_UTEST "Compile the RNR UTest system" ON)
set(DEPENDENCIES_DIR ${CMAKE_SOURCE_DIR}/Dependencies)
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/dist)
add_compile_options(-Wno-attributes -Wno-return-type) # Ignore warnings generated by Luau and Qt
find_package(Boost REQUIRED)
find_package(OGRE REQUIRED COMPONENTS Bites CONFIG)
find_package(pugixml REQUIRED)
find_package(Bullet CONFIG REQUIRED)
set(RNR_BULLET_LIBRARIES Bullet3Common BulletDynamics BulletSoftBody BulletCollision BulletInverseDynamics LinearMath)
add_subdirectory(Projects)
if(CI AND UNIX)
file(COPY ${OGRE_MEDIA_DIR}/Main/ DESTINATION ${CMAKE_BINARY_DIR}/shaders)
file(COPY ${OGRE_MEDIA_DIR}/RTShaderLib/ DESTINATION ${CMAKE_BINARY_DIR}/shaders)
file(COPY ${OGRE_PLUGIN_DIR}/ DESTINATION ${CMAKE_BINARY_DIR}/plugins)
endif()