Skip to content

Commit

Permalink
needed to add optix headers as public path. will change this in future
Browse files Browse the repository at this point in the history
  • Loading branch information
amock committed Dec 4, 2023
1 parent 997d47d commit ff085b5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/rmagine_optix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set(OPTIX_KERNEL_FILES
src/simulation/optix/SensorProgramHit.cu
)

get_target_property(RMAGINE_CORE_INCLUDES rmagine-core INCLUDE_DIRECTORIES)
get_target_property(RMAGINE_CORE_INCLUDES rmagine-core INTERFACE_INCLUDE_DIRECTORIES)

cuda_include_directories(
${RMAGINE_CORE_INCLUDES}
Expand Down Expand Up @@ -96,10 +96,15 @@ target_include_directories(rmagine-optix PUBLIC
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/rmagine-${rmagine_VERSION}>
)

target_include_directories(rmagine-optix PRIVATE
# TODO: make this PRIVATE as soon as RMCL is not compiling OptiX code
target_include_directories(rmagine-optix PUBLIC
${OptiX_INCLUDE_DIRS}
)

# target_include_directories(rmagine-optix PRIVATE
# ${OptiX_INCLUDE_DIRS}
# )

target_link_libraries(rmagine-optix
${OptiX_LIBRARIES}
rmagine-cuda
Expand Down

0 comments on commit ff085b5

Please sign in to comment.