-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
54 lines (32 loc) · 1.16 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
37
38
39
40
41
42
43
44
45
46
47
48
49
cmake_minimum_required(VERSION 3.2.2) # CMake version check
# we don't allow libStream to be build in the source directory
set (CMAKE_DISABLE_IN_SOURCE_BUILD ON)
set (DORI_VERSION_MAJOR 0)
set (DORI_VERSION_MINOR 1)
# Create project "libDori"
project(libDori)
# Include Directories
# ================
# LibDori files
include_directories("${PROJECT_SOURCE_DIR}/include")
# Third party libraries
include_directories("${PROJECT_SOURCE_DIR}/third_party")
# LibDori's combined list of source files
# ================
file(GLOB_RECURSE LDORI_C_CPP_SOURCE RELATIVE "${PROJECT_SOURCE_DIR}"
"src/*.cpp" "include/*.hpp")
# Compiler configuration
# ==================
include (${CMAKE_SOURCE_DIR}/CMake/cmake_compiler_flags.cmake)
# Build as Shared Library
# ==================
include (${CMAKE_SOURCE_DIR}/CMake/cmake_build_shared_library.cmake)
# Build Tests and examples
# ==================
include (${CMAKE_SOURCE_DIR}/CMake/cmake_build_tests.cmake)
# Build CLI tools
# ==================
include (${CMAKE_SOURCE_DIR}/CMake/cmake_build_cli_tools.cmake)
# libDori installation
# ==================
include (${CMAKE_SOURCE_DIR}/CMake/cmake_libDori_installation.cmake)