https://github.com/InteractiveComputerGraphics/SPlisHSPlasH
Tip revision: e773d3e26655b32ab67a9ac7c48f6f2bf22f9429 authored by Holger Götz on 04 February 2025, 07:39:32 UTC
Corrected calculation of the gradient of the WendlandQuinticC2Kernel. See also Line 591. (#347)
Corrected calculation of the gradient of the WendlandQuinticC2Kernel. See also Line 591. (#347)
Tip revision: e773d3e
CMakeLists.txt
################################################################################
# general CMake and project setup
################################################################################
cmake_minimum_required(VERSION 3.1)
project(SPlisHSPlasH)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
include(Common)
if (NOT WIN32)
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
endif()
set(ExternalInstallDir "${CMAKE_BINARY_DIR}/extern/install" CACHE INTERNAL "")
set(EXT_CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE INTERNAL "")
if (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set(EXT_CMAKE_BUILD_TYPE "Release" CACHE INTERNAL "")
endif()
set(TOPLEVEL_INCLUDE_DIR ${PROJECT_SOURCE_DIR})
################################################################################
# foreign external libraries
################################################################################
add_subdirectory(extern/zlib)
add_subdirectory(extern/partio)
add_subdirectory(extern/md5)
add_subdirectory(extern/tinyexpr)
if (NOT SPH_LIBS_ONLY)
add_subdirectory(extern/glfw)
add_subdirectory(extern/imgui)
add_subdirectory(extern/nfd)
if (USE_PYTHON_BINDINGS)
add_subdirectory(extern/pybind)
endif ()
endif()
## Eigen3 is used by most of the libraries that follow
find_package(Eigen3 REQUIRED)
add_definitions(-DEIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT)
################################################################################
# own external libraries
################################################################################
include(SetUpExternalProjects)
################################################################################
# internal libraries
################################################################################
add_subdirectory(SPlisHSPlasH)
add_subdirectory(Utilities)
################################################################################
# executables
################################################################################
if (NOT SPH_LIBS_ONLY)
include(DataCopyTargets)
add_subdirectory(Tools)
add_subdirectory(Simulator)
add_subdirectory(Tests)
if (USE_PYTHON_BINDINGS)
add_subdirectory(pySPlisHSPlasH)
endif ()
endif()