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.
16 lines
477 B
16 lines
477 B
2 years ago
|
cmake_minimum_required(VERSION 3.16)
|
||
|
project(renderSDF CXX CUDA)
|
||
|
|
||
|
add_subdirectory(sdf_generate)
|
||
|
|
||
|
set(CMAKE_CUDA_STANDARD 14)
|
||
|
find_package(CUDA REQUIRED)
|
||
|
|
||
|
include_directories(${PROJECT_SOURCE_DIR}/common/inc)
|
||
|
include_directories(/usr/local/cuda/include)
|
||
|
add_executable(renderSDF marchingCubes.cpp marchingCubes_kernel.cu functions.cu functions.cuh)
|
||
|
|
||
|
target_link_libraries(renderSDF GL GLU glut)
|
||
|
set_target_properties(renderSDF PROPERTIES
|
||
|
CUDA_SEPARABLE_COMPILATION ON)
|