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.

26 lines
744 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(renderSDF CXX CUDA)
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)
ADD_LIBRARY(sdfGenerate SHARED ${DIR_SRCS} ${DIR_INCLUDE} main.cpp)
#add_executable(sdfGenerate ${DIR_SRCS} ${DIR_INCLUDE} main.cpp)
2 years ago
target_link_libraries(sdfGenerate Eigen3::Eigen)
set_target_properties(sdfGenerate PROPERTIES
CUDA_SEPARABLE_COMPILATION ON)