Merge branch 'main' of https://github.com/dcoeurjo/CGDI-Practicals
This commit is contained in:
commit
b5c2318646
@ -1,9 +1,11 @@
|
||||
project(CGDI-c++)
|
||||
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 3.13)
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 3.14)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
||||
|
||||
@ -22,11 +24,11 @@ add_subdirectory(image-processing/3-Rasterization/c++/)
|
||||
############################################################
|
||||
#Geometry processing
|
||||
|
||||
#include(geometry-central)
|
||||
#include(polyscope)
|
||||
include(geometry-central)
|
||||
include(polyscope)
|
||||
|
||||
#add_subdirectory(geometry-processing/4-modeling/c++/)
|
||||
#add_subdirectory(geometry-processing/5-LaplacianSmoothing/c++/)
|
||||
#add_subdirectory(geometry-processing/6-GeomProcessing/c++)
|
||||
#add_subdirectory(geometry-processing/7-MonteCarloGeometryProcessing/c++)
|
||||
add_subdirectory(geometry-processing/4-modeling/c++/)
|
||||
add_subdirectory(geometry-processing/5-LaplacianSmoothing/c++/)
|
||||
add_subdirectory(geometry-processing/6-GeomProcessing/c++)
|
||||
add_subdirectory(geometry-processing/7-MonteCarloGeometryProcessing/c++)
|
||||
############################################################
|
||||
|
1269
cmake/CPM.cmake
Normal file
1269
cmake/CPM.cmake
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,13 +2,10 @@ if (TARGET geometry-central)
|
||||
return()
|
||||
endif()
|
||||
|
||||
include(FetchContent)
|
||||
include(CPM)
|
||||
|
||||
message(STATUS "Fetching geometry-central")
|
||||
|
||||
FetchContent_Declare(
|
||||
geometry-central
|
||||
GIT_REPOSITORY https://github.com/nmwsharp/geometry-central.git
|
||||
GIT_SHALLOW TRUE
|
||||
CPMAddPackage(
|
||||
NAME geometry-central
|
||||
GIT_TAG 70c859ec3b58fe597c0063673a74082654e9c5aa
|
||||
GITHUB_REPOSITORY "nmwsharp/geometry-central"
|
||||
)
|
||||
FetchContent_MakeAvailable(geometry-central)
|
||||
|
@ -2,14 +2,15 @@ if (TARGET polyscope)
|
||||
return()
|
||||
endif()
|
||||
|
||||
include(FetchContent)
|
||||
include(CPM)
|
||||
|
||||
message(STATUS "Fetching polyscope")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG_OLD "${CMAKE_CXX_FLAGS_DEBUG}")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-w")
|
||||
|
||||
FetchContent_Declare(
|
||||
polyscope
|
||||
GIT_REPOSITORY https://github.com/nmwsharp/polyscope.git
|
||||
GIT_TAG v1.2.0
|
||||
GIT_SHALLOW TRUE
|
||||
CPMAddPackage(
|
||||
NAME polyscope
|
||||
VERSION 2.3.0
|
||||
GITHUB_REPOSITORY "nmwsharp/polyscope"
|
||||
)
|
||||
FetchContent_MakeAvailable(polyscope)
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG_OLD}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user