Warning, /acts/thirdparty/FRNN/CMakeLists.txt.in is written in an unsupported language. File is not indexed.
0001 set(FRNN_CXX_FLAGS "${TORCH_CXX_FLAGS}")
0002
0003 if(CMAKE_COMPILER_IS_GNUCXX)
0004 list(APPEND FRNN_CXX_FLAGS -Wno-error=deprecated-declarations)
0005 endif(CMAKE_COMPILER_IS_GNUCXX)
0006
0007 set(FRNN_CUDA_FLAGS "")
0008 list(APPEND FRNN_CUDA_FLAGS --expt-extended-lambda --expt-relaxed-constexpr)
0009 list(APPEND FRNN_CUDA_FLAGS -Werror=cross-execution-space-call -Wno-deprecated-declarations -Xptxas=--disable-warnings)
0010 list(APPEND FRNN_CUDA_FLAGS -Xcompiler=-Wall,-Wno-error=sign-compare,-Wno-error=unused-but-set-variable)
0011 list(APPEND FRNN_CUDA_FLAGS -Xfatbin=-compress-all --ftemplate-depth=2048 -G)
0012
0013 if (CMAKE_CUDA_LINEINFO)
0014 list(APPEND FRNN_CUDA_FLAGS -lineinfo)
0015 endif(CMAKE_CUDA_LINEINFO)
0016
0017 # Debug options
0018 if(CMAKE_BUILD_TYPE MATCHES Debug)
0019 message(STATUS "Building with debugging flags")
0020 list(APPEND FRNN_CUDA_FLAGS -G -Xcompiler=-rdynamic)
0021 endif(CMAKE_BUILD_TYPE MATCHES Debug)
0022
0023 add_library(frnn STATIC
0024 frnn/csrc/grid/counting_sort.cu
0025 frnn/csrc/grid/find_nbrs.cu
0026 frnn/csrc/grid/insert_points.cu
0027 frnn/csrc/grid/prefix_sum.cu
0028 )
0029
0030 target_include_directories(frnn
0031 SYSTEM PUBLIC
0032 ${TORCH_INCLUDE_DIRS}
0033 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/frnn/csrc>
0034 )
0035
0036 target_link_libraries(frnn PRIVATE ${TORCH_LIBRARIES})
0037
0038 set_property(TARGET frnn PROPERTY CXX_STANDARD 17)
0039 set_property(TARGET frnn PROPERTY POSITION_INDEPENDENT_CODE ON)
0040 set_property(TARGET frnn PROPERTY CUDA_SEPARABLE_COMPILATION ON)
0041 set_property(TARGET frnn PROPERTY CUDA_STANDARD 17)
0042
0043 target_compile_options(frnn
0044 PUBLIC "$<$<COMPILE_LANGUAGE:CXX>:${FRNN_CXX_FLAGS}>"
0045 "$<BUILD_INTERFACE:$<$<COMPILE_LANGUAGE:CUDA>:${FRNN_CUDA_FLAGS}>>"
0046 )