-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (26 loc) · 1.15 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
CMAKE_MINIMUM_REQUIRED(VERSION 3.2)
PROJECT(oi.native VERSION 0.1 LANGUAGES CXX C)
INCLUDE(GNUInstallDirs)
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
#SET(CMAKE_DISABLE_SOURCE_CHANGES ON)
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message(SEND_ERROR "In-source builds are not allowed.")
endif ()
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_COLOR_MAKEFILE ON)
if (WIN32)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
endif ()
SET(OI_NATIVE_ROOT "${PROJECT_SOURCE_DIR}" CACHE STRING "oi.native root source")
SET(OI_NATIVE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake_modules" CACHE STRING "oi.native find modules")
SET(OI_DEPENDS_DIR "${PROJECT_SOURCE_DIR}/dependencies" CACHE STRING "OpenIMPRESS dependency directory")
SET(OI_SHARED_DIR "${PROJECT_SOURCE_DIR}/../shared" CACHE STRING "OpenIMPRESS shared resources")
SET(OI_LIB_DIR "${PROJECT_SOURCE_DIR}/lib" CACHE STRING "OpenIMPRESS single file library dependencies")
LIST(APPEND CMAKE_MODULE_PATH ${OI_NATIVE_MODULE_PATH} )
#add_subdirectory(oi.proto)
add_subdirectory(oi.core)
add_subdirectory(oi.network)
add_subdirectory(oi.rgbd)
add_subdirectory(oi.examples)
add_subdirectory(oi.clients)