CMakeLists.txt 427 Bytes
Newer Older
yan.yan's avatar
yan.yan committed
1
2
3
4
5
6
7
8
9
10
11
12
13

cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
project(SpconvExample LANGUAGES CXX CUDA VERSION 0.1)

set(CUMM_DISABLE_CMAKE_INSTALL ON CACHE BOOL "enable X functionality" FORCE)

add_subdirectory(cumm)
add_subdirectory(spconv)

add_executable(main main.cc)
# SPCONV2_INCLUDE_PATH come from spconv/CMakeLists.txt
target_include_directories(main PRIVATE ${SPCONV2_INCLUDE_PATH})
target_link_libraries(main spconv cumm::cumm)