Skip to content

Commit

Permalink
make instantvnr shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Qi Wu committed Aug 14, 2023
1 parent 44cbc2d commit f147784
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ endif()
# renderer core
# ======================================================================== #

add_library(${target} # SHARED
add_library(${target} SHARED
renderer/method_pathtracing.cu
renderer/method_pathtracing.h

Expand Down Expand Up @@ -124,7 +124,7 @@ if(ENABLE_OPTIX)
renderer/method_optix.cu
renderer/method_optix.cpp
)
target_link_libraries(${target} PUBLIC OptiX::optix7)
target_link_libraries(${target} PRIVATE OptiX::optix7)
endif()

if(ENABLE_IN_SHADER)
Expand Down Expand Up @@ -159,8 +159,8 @@ PROPERTIES
)

target_include_directories(${target} PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(${target} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/..)
target_include_directories(${target} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../..)
target_include_directories(${target} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/..>)
target_include_directories(${target} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/../..>)

target_compile_options(${target} PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:${CUDA_NVCC_FLAGS}>)
target_compile_options(${target} PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe="--diag_suppress=177">) # -> variable declared but not referenced
Expand Down

0 comments on commit f147784

Please sign in to comment.