-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
37 lines (28 loc) · 919 Bytes
/
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
37
cmake_minimum_required(VERSION 3.13)
project(InvPend)
option( INVPEND_ENABLE_SAMPLES "Compile samples if on" OFF)
option( INVPEND_ENABLE_CLIENT "Compile client if on" OFF)
option( INVPEND_ENABLE_SERVER "Compile server if on" ON)
option( INVPEND_ENABLE_ARDUINO "Compile arduino projects if on" OFF)
option( INVPEND_ENABLE_TOOLS "Compile debug tooling if on" ON)
option( INVPEND_ENABLE_OPENGL "Builds iplib opengl" OFF)
set(INVPEND_INCLUDE_ONLY_DIR ${CMAKE_BINARY_DIR}/include)
set(INVPEND_COMMON_LIBS iplib)
include(./CMakeIncludes/CMakeMacros.txt)
add_subdirectory(thirdparty)
add_subdirectory(lib)
if( INVPEND_ENABLE_SAMPLES )
add_subdirectory(samples)
endif()
if( INVPEND_ENABLE_CLIENT )
add_subdirectory(client)
endif()
if( INVPEND_ENABLE_SERVER )
add_subdirectory(server)
endif()
if( INVPEND_ENABLE_ARDUINO )
add_subdirectory(arduino)
endif()
if( INVPEND_ENABLE_TOOLS )
add_subdirectory(tools)
endif()