Skip to content
Permalink
Browse files

Added C++ standard for CUDA

  • Loading branch information...
straubar committed Sep 9, 2019
1 parent 0812a2c commit 252f51a5ffb115709e60e5d704ad640871e70ff7
Showing with 3 additions and 3 deletions.
  1. +1 −1 cmake/megamol_options.cmake
  2. +1 −1 plugins/molecularmaps/CMakeLists.txt
  3. +1 −1 plugins/protein_cuda/CMakeLists.txt
@@ -9,7 +9,7 @@ else()
endif()

# Build types
set(CMAKE_CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo")
set(CMAKE_CONFIGURATION_TYPES CACHE STRING "Debug;Release;RelWithDebInfo" FORCE)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the build type." FORCE)
endif()
@@ -49,7 +49,7 @@ if(BUILD_${EXPORT_NAME}_PLUGIN)

# Target definition
add_library(${PROJECT_NAME} SHARED ${public_header_files} ${header_files} ${shader_files} ${source_files} ${cuda_header_files} ${cuda_source_files})
set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".mmplg")
set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".mmplg" CUDA_STANDARD 14)
target_compile_definitions(${PROJECT_NAME} PRIVATE ${EXPORT_NAME}_EXPORTS)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> "include" "src" "src/helper_includes")
target_link_libraries(${PROJECT_NAME} PRIVATE vislib core glad protein_calls geometry_calls Eigen)
@@ -57,7 +57,7 @@ if(BUILD_${EXPORT_NAME}_PLUGIN)

# Target definition
add_library(${PROJECT_NAME} SHARED ${public_header_files} ${header_files} ${shader_files} ${source_files} ${cuda_header_files} ${cuda_source_files} ${cuda_helpers})
set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".mmplg")
set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".mmplg" CUDA_STANDARD 14)
target_compile_definitions(${PROJECT_NAME} PRIVATE ${EXPORT_NAME}_EXPORTS)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
"include" "src" "src/helper_includes" "${CUDA_BIN_DIR}/../include")

0 comments on commit 252f51a

Please sign in to comment.
You can’t perform that action at this time.