Commit b7a7f349 authored by Mike Kremer's avatar Mike Kremer
Browse files

Add cude include paths to global build target in order to include cuda headers in c++ code.

Restrict compilation of cuda sources to *.cu and *.c files. The rest should be built via the normal target.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11769 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5ac39ab5
......@@ -453,8 +453,11 @@ function (_build_openflipper_plugin plugin)
get_directory_property( CURRENT_DEFINITIONS_A COMPILE_DEFINITIONS )
# Get all cuda sources
file(GLOB_RECURSE ${_PLUGIN}_CUDA_SRCS Cuda/*.cu Cuda/*.c Cuda/*.cc Cuda/*.cpp Cuda/*.h Cuda/*.hh)
file(GLOB_RECURSE ${_PLUGIN}_CUDA_SRCS Cuda/*.cu Cuda/*.c)
# Add cuda include dirs to global build target
include_directories(${CUDA_INCLUDE_DIRS})
# Force to -fPIC such that we can correctly link against the lib lateron in the plugin
list ( APPEND CMAKE_CXX_FLAGS "-fPIC" )
list ( APPEND CMAKE_CC_FLAGS "-fPIC" )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment