forked from carlren/ORUtils
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
executable file
·46 lines (34 loc) · 1010 Bytes
/
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
##############################
# CMakeLists.txt for ORUtils #
##############################
###########################
# Specify the target name #
###########################
SET(targetname ORUtils)
################################
# Specify the libraries to use #
################################
INCLUDE(UseCUDA)
INCLUDE(UseOpenMP)
#############################
# Specify the project files #
#############################
file(GLOB_RECURSE srcs *.cpp)
file(GLOB_RECURSE header *.hpp *.h)
file(GLOB_RECURSE cuda *.cu)
SET(sources
${srcs} ${cuda}
)
SET(headers
${header}
)
#############################
# Specify the source groups #in
#############################
SOURCE_GROUP("" FILES ${sources} ${headers})
##########################################
# Specify the target and where to put it #
##########################################
INCLUDE(SetCUDALibTarget)
set_target_properties(${targetname} PROPERTIES LINKER_LANGUAGE CXX)
set_target_properties(${targetname} PROPERTIES CXX_STANDARD 11)