forked from udacity/cs344
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (29 loc) · 1.33 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
############################################################################
# <summary> CMakeLists.txt for OpenCV and CUDA. </summary>
# <date> 2012-02-07 </date>
# <author> Quan Tran Minh. edit by Johannes Kast, Michael Sarahan </author>
############################################################################
cmake_minimum_required(VERSION 3.19)
project(cs344)
find_package(OpenCV REQUIRED)
find_package(CUDA REQUIRED)
link_libraries(${OpenCV_LIBS} )
set (EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin/")
if(CUDA_FOUND)
# add -Wextra compiler flag for gcc compilations
if (UNIX)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-Xcompiler -Wextra")
set(CMAKE_CXX_FLAGS "-stdlib=libstdc++")
endif (UNIX)
# add debugging to CUDA NVCC flags. For NVidia's NSight tools.
set(CUDA_NVCC_FLAGS_DEBUG ${CUDA_NVCC_FLAGS_DEBUG} "-G")
add_subdirectory (Problem\ Sets/Problem\ Set\ 1)
add_subdirectory (Problem\ Sets/Problem\ Set\ 2)
add_subdirectory (Problem\ Sets/Problem\ Set\ 3)
add_subdirectory (Problem\ Sets/Problem\ Set\ 4)
add_subdirectory (Problem\ Sets/Problem\ Set\ 5)
add_subdirectory (Problem\ Sets/Problem\ Set\ 6)
else(CUDA_FOUND)
message("CUDA is not installed on this system.")
endif()