forked from analogdevicesinc/aditof_sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (25 loc) · 1.05 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 2.8)
project(adi_tof_project)
############################### Version #######################################
set(ADITOF_VERSION_MAJOR 1)
set(ADITOF_VERSION_MINOR 0)
set(ADITOF_VERSION_PATCH 0)
set(VERSION "${ADITOF_VERSION_MAJOR}.${ADITOF_VERSION_MINOR}.${ADITOF_VERSION_PATCH}")
############################### Options #######################################
option(WITH_EXAMPLES "Build examples?" ON)
option(WITH_DOC "Build documentation?" OFF)
option(WITH_PYTHON "Build python bindings?" OFF)
add_subdirectory(sdk)
if (WITH_EXAMPLES)
add_subdirectory(examples)
endif()
if (WITH_DOC)
add_subdirectory(doc)
endif()
if (WITH_PYTHON)
add_subdirectory(bindings/python)
endif()
############################### Installer #######################################
configure_file(aditof-setup.iss.cmakein ${CMAKE_CURRENT_BINARY_DIR}/aditof-setup.iss @ONLY)
############################### Version #######################################
configure_file(version.h.cmakein ${CMAKE_SOURCE_DIR}/sdk/include/aditof/version.h @ONLY)