-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
51 lines (33 loc) · 1.3 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
50
51
####################################################
# Copyright (c) 2016 Idiap Research Institute #
# Written by James Newling <jnewling@idiap.ch> #
####################################################
cmake_minimum_required(VERSION 3.0)
#preferred compiler. TODO, make this optional
# (see https://cmake.org/Wiki/CMake_FAQ#How_do_I_use_a_different_compiler.3F).
#SET (CMAKE_CXX_COMPILER "clang++")
#SET (CMAKE_CXX_COMPILER "g++")
project(zentas)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(${PROJECT_NAME}_VERSION 0.1)
set(${PROJECT_NAME}_VERSION_MAJOR 0)
set(${PROJECT_NAME}_VERSION_MINOR 1)
option(BUILD_PYTHON_LIB "Build Python library" ON)
option(BUILD_R_LIB "Build R library (NOT yet functioning)" OFF)
option(BUILD_SHARED_LIBS "Build shared library" ON)
set( CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." )
#Where to find FindCython.cmake
list( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake )
find_package (Threads REQUIRED)
add_definitions(-DPATH_DATADIR="${CMAKE_CURRENT_SOURCE_DIR}/data/")
add_subdirectory(zentas)
add_subdirectory(testsexamples)
if (BUILD_PYTHON_LIB)
find_package(Cython REQUIRED)
add_subdirectory(python)
endif()
if (BUILD_R_LIB)
add_subdirectory(R)
endif()