Warning, /include/root/bvh/v2/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_library(bvh INTERFACE)
0002 find_package(Threads)
0003 if (Threads_FOUND)
0004 # Link with the threading library of the system, which may
0005 # be required by standard header <thread> on some systems
0006 target_link_libraries(bvh INTERFACE Threads::Threads)
0007 endif()
0008
0009 target_include_directories(bvh INTERFACE
0010 $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>
0011 $<INSTALL_INTERFACE:include>)
0012
0013 set_target_properties(bvh PROPERTIES CXX_STANDARD 20)
0014
0015 install(
0016 DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
0017 DESTINATION include/bvh/v2
0018 FILES_MATCHING PATTERN "*.h"
0019 PATTERN "c_api" EXCLUDE)
0020
0021 if (BVH_BUILD_C_API)
0022 add_subdirectory(c_api)
0023 endif()