-
Notifications
You must be signed in to change notification settings - Fork 32
/
CMakeLists.txt
43 lines (31 loc) · 1.2 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
cmake_minimum_required(VERSION 2.6)
project(SCCS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -pedantic -fPIC -std=c++0x")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -pedantic -fPIC -std=c++0x")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -O0 -g -pg")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -O0 -g -pg")
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake ${CMAKE_MODULE_PATH})
if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-register")
endif(APPLE)
#find_package(CUDA)
set(R_LIBRARIES "/Library/Frameworks/R.framework/Versions/3.5/Resources/library/")
if(DEFINED R_LIBRARIES)
set(BOOST_ROOT
${R_LIBRARIES}/BH/include)
set(RCPP_PARALLEL_ROOT
${R_LIBRARIES}/RcppParallel)
set(RCPP_EIGEN_ROOT
${R_LIBRARIES}/RcppEigen)
else()
message(FATAL_ERROR "RCPP_PARALLEL_ROOT is not defined")
endif()
include_directories(${RCPP_PARALLEL_ROOT}/include)
find_package(Boost)
# add_subdirectory(${CMAKE_SOURCE_DIR}/codebase/CCD)
add_subdirectory(${CMAKE_SOURCE_DIR}/standalone/codebase/CCD-DP)
#if(CUDA_FOUND)
# add_subdirectory(${CMAKE_SOURCE_DIR}/codebase/GPU)
## add_subdirectory(${CMAKE_SOURCE_DIR}/codebase/GPU-DP)
#endif(CUDA_FOUND)
#add_subdirectory(${CMAKE_SOURCE_DIR}/codebase/jni)