Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ local.env
xcode-project
build
.*.sw*

include/delaunator_config.hpp
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ include(FeatureSummary)
include(${D_CMAKE_DIR}/options.cmake)
include(${D_CMAKE_DIR}/gtest.cmake)

configure_file(
${CMAKE_CURRENT_LIST_DIR}/cmake/delaunator_config.hpp.in
${CMAKE_CURRENT_LIST_DIR}/include/delaunator_config.hpp
@ONLY
)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${D_BIN_DIR})

add_library(delaunator include/delaunator.cpp)
Expand Down
3 changes: 3 additions & 0 deletions cmake/delaunator_config.hpp.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#pragma once

#cmakedefine DELAUNATOR_SINGLE_PRECISION
2 changes: 2 additions & 0 deletions cmake/options.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
option(WITH_TESTS
"Choose if delaunator tests should be built" TRUE)
add_feature_info("Unit tests" WITH_TESTS "Delaunator unit tests")

option(DELAUNATOR_SINGLE_PRECISION "Whether to use single precision floating point values." OFF)
Loading