-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (28 loc) · 921 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(HeatGeodesics)
# include_directories(PUBLIC "${PROJECT_BINARY_DIR}")
# set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
find_program(CCACHE_FOUND ccache)
option(DISABLE_CCACHE "Disable ccache even if found" OFF)
if (CCACHE_FOUND AND NOT DISABLE_CCACHE)
message(STATUS "Using ccache")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
endif ()
set(PM_CMAKE_DIR ${PROJECT_SOURCE_DIR}/cmake)
include(cmake/CPM.cmake)
include(cmake/dependencies.cmake)
find_package(Eigen3 REQUIRED)
add_library(thirdparty INTERFACE)
target_link_libraries(thirdparty INTERFACE
Eigen3::Eigen fmt::fmt
spdlog::spdlog spdlog::spdlog_header_only
absl::inlined_vector
absl::flat_hash_map
absl::flat_hash_set
CDT
igl::core
)
add_subdirectory(libs)
add_subdirectory(apps)