CMakeLists.txt 1.92 KB
Newer Older
promayon's avatar
promayon committed
1
#--------------------------------------------
2
#
promayon's avatar
promayon committed
3
#         CamiTK Open Source CEP Set
4
#
promayon's avatar
promayon committed
5
#--------------------------------------------
6
cmake_minimum_required(VERSION 3.0)
7

8 9
project(camitkopensource)

10 11 12 13
# Allow testing of the whole camitk-opensource project
include(CTest)
enable_testing()

promayon's avatar
promayon committed
14
# Specific to SDK: control the version (major, minor, default patch and )
15
set(CAMITK_PROJECT_NAME "CamiTK")
16 17 18
set(CAMITK_VERSION_MAJOR "4")
set(CAMITK_VERSION_MINOR "0")
set(CAMITK_VER_NICKNAME "red") # Red Amaranth American rose Auburn Burgundy Cardinal Carmine Carnelian Cerise Coquelicot
promayon's avatar
promayon committed
19
set(CAMITK_VERSION_PATCH "0") # patch version for packaging, change when appropriate
20
string(TOLOWER "${CAMITK_PROJECT_NAME}-${CAMITK_VERSION_MAJOR}.${CAMITK_VERSION_MINOR}" CAMITK_SHORT_VERSION_STRING)
21

promayon's avatar
promayon committed
22 23
# Specific to SDK: this is the SDK build
set(CAMITK_SDK_BUILD TRUE)
24

promayon's avatar
promayon committed
25 26
#-- This is a CEP set...
set(CAMITK_EXTENSION_PROJECT_SET TRUE CACHE BOOL "Is this a CamiTK Extension Project Set?")
27
set(CAMITK_EXTENSION_PROJECT_SET_NAME "camitk-opensource" CACHE STRING "CEP Set Name")
28

29 30
# Configure CamiTK Opensource packaging.
# Must be done before parsing extensions CMakeLists.txt files.
saubatn's avatar
saubatn committed
31
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/sdk/cmake/modules/macros)
lealv's avatar
lealv committed
32
set(CAMITK_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
33
include(camitk/packaging/CamiTKOpenSourcePackaging)
saubatn's avatar
saubatn committed
34 35
camitk_opensource_packaging()

saubatn's avatar
saubatn committed
36 37
# CamiTK 4.0 is C++11 compliant
set(CMAKE_CXX_FLAGS "-std=c++11")
38

39 40
# Specific to SDK: first compile the SDK (it looks like a CEP but is sooooo special...)
add_subdirectory(sdk)
41

promayon's avatar
promayon committed
42 43
# ...composed by the following CamiTK Extension Projects
add_subdirectory(imaging)
44 45
add_subdirectory(modeling)

saubatn's avatar
saubatn committed
46 47 48 49 50 51 52 53
# Do we wrapp CamiTK for scripting it into Python using Shiboken and PySide ?
set(CAMITK_BINDING_PYTHON CACHE BOOL FALSE)

# Consider python binding only if the CMake variable is checked
if(CAMITK_BINDING_PYTHON)
    add_subdirectory(python_sdk)
endif()

promayon's avatar
promayon committed
54
camitk_sub_project_validate(CEP_SET)