-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
56 lines (44 loc) · 1.04 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
52
53
54
55
56
#Minimum cmake version asked
cmake_minimum_required(VERSION 2.8)
#Project Name
project(CudaSoftCollisions)
#Use C++11
set(CMAKE_CXX_STANDARD 11)
#Option for tests
option(ENABLE_UNIT_TESTS "Enable tests" FALSE)
##########
#Packages#
##########
find_package(OpenCV REQUIRED)
find_package(CUDA REQUIRED)
find_package(VTK REQUIRED)
######
#Srcs#
######
##########
#Includes#
##########
#Does not include vtk headers here because vtk does not like them
include_directories(include)
###################
#Generated helpers#
###################
#Generated helpers such as paths and others stuffs that can be used in cpp afterward
add_subdirectory(helpers)
include_directories(${CMAKE_BINARY_DIR}/generated/helpers )
#########
#Outputs#
#########
#Set outputs dir
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
################
#Subdirectories#
################
#Lib
add_subdirectory(src/csc/cuda_src) #Cuda does not like vtk headers..
include(${VTK_USE_FILE})
add_subdirectory(src/csc)
#Tests
if(ENABLE_UNIT_TESTS)
add_subdirectory(src/tests)
endif()