cudaconfidencemaps.cmake 1.21 KB
Newer Older
1
2
3
4
5
6
7
8
9
# CMake file for vis module

IF(${ModuleEnabled})
	# Find CUDA
    FIND_PACKAGE(CUDA REQUIRED)

    if(CUDA_FOUND)
		# Source files:
		FILE(GLOB ThisModSources RELATIVE ${ModulesDir}
10
			modules/cudaconfidencemaps/core/*.cpp
11
12
13
14
15
16
17
18
19
20
21
22
23
			modules/cudaconfidencemaps/pipelines/*.cpp
			modules/cudaconfidencemaps/processors/*.cpp
		)

		# Header files (including GLSL files so that they'll appear in VS projects)
		FILE(GLOB ThisModHeaders RELATIVE ${ModulesDir}
			modules/cudaconfidencemaps/glsl/*.frag
			modules/cudaconfidencemaps/glsl/*.geom
			modules/cudaconfidencemaps/glsl/*.vert
			modules/cudaconfidencemaps/pipelines/*.h
			modules/cudaconfidencemaps/processors/*.h
		)

24
25
26
27
28
29
30
31
32
		# Build CUDA sources
		set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-O3)
		file(GLOB cuda_SOURCES modules/cudaconfidencemaps/core/*.cu)
		cuda_add_library(
			CudaConfidenceMaps_CUDA
			${cuda_SOURCES}
			)
		LIST(APPEND ThisModExternalLibs CudaConfidenceMaps_CUDA)

33
34
35
36
37
38
39
40
41
		SET(ThisModShaderDirectories "modules/cudaconfidencemaps/glsl")
		SET(ThisModDependencies base io)
	else()
		MESSAGE(FATAL_ERROR "Could not find CUDA SDK.")
	endif()
ENDIF(${ModuleEnabled})

SET(ThisModStatus EXPERIMENTAL)
SET(ThisModExternalDependencies TRUE)