Intelligent Sigend Distance Fields
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
956 B

2 years ago
cmake_minimum_required(VERSION 3.16)
if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
set(CMAKE_CUDA_ARCHITECTURES 86)
endif()
2 years ago
project(sdfGenerate CXX CUDA)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../pybind11 ${CMAKE_CURRENT_SOURCE_DIR}/../cmake-build-debug/pybind11)
# CMAKE选项
2 years ago
set(CMAKE_CUDA_STANDARD 14)
find_package(CUDA REQUIRED)
find_package(Eigen3 REQUIRED)
include_directories(${PROJECT_SOURCE_DIR}/common/inc)
include_directories(/usr/local/cuda/include)
include_directories(include)
AUX_SOURCE_DIRECTORY(src DIR_SRCS)
FILE(GLOB_RECURSE DIR_INCLUDE include/*.h include/*.hpp include/*.cuh)
2 years ago
pybind11_add_module(sdfGenerate ${DIR_SRCS} ${DIR_INCLUDE} main.cpp)
#ADD_LIBRARY(sdfGenerate SHARED ${DIR_SRCS} ${DIR_INCLUDE} main.cpp)
#add_executable(sdfGenerate ${DIR_SRCS} ${DIR_INCLUDE} main.cpp)
2 years ago
2 years ago
target_link_libraries(sdfGenerate PUBLIC Eigen3::Eigen)
2 years ago
set_target_properties(sdfGenerate PROPERTIES
CUDA_SEPARABLE_COMPILATION ON)