Skip to content
Merged
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
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ option(BUILD_WITH_BUNDLED_GLEW "Build with bundled GLEW" ON)
option(BUILD_WITH_BUNDLED_LIBLASZIP "Build with bundled Lib LASZIP" ON)
option(BUILD_WITH_BUNDLED_ONETBB "Build with bundled oneTBB" ON)
option(BUILD_WITH_PYBIND "Enable pybind11 bindings" OFF)
option(HDMAPPING_ASSERT_ALWAYS_ABORT "Make HDMAPPING_ASSERT() abort on failure even in release (NDEBUG) builds" OFF)

# Add definitions for all projects
add_definitions(-DHDMAPPING_VERSION_MAJOR=${HDMAPPING_VERSION_MAJOR})
Expand All @@ -46,6 +47,8 @@ add_definitions(-D_USE_MATH_DEFINES)
if (MSVC)
add_definitions(-DNOMINMAX)
add_definitions(-DWIN32_LEAN_AND_MEAN)
# HDMAPPING_ASSERT's __VA_OPT__ needs the conforming preprocessor;
add_compile_options(/Zc:preprocessor)
endif()

if(APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
Expand All @@ -54,6 +57,10 @@ else()
add_compile_definitions(USE_EXECUTION_PAR_UNSEQ=1)
endif()

if(HDMAPPING_ASSERT_ALWAYS_ABORT)
add_compile_definitions(HDMAPPING_ASSERT_ALWAYS_ABORT)
endif()

# Expand module seatch path
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")

Expand Down
3 changes: 2 additions & 1 deletion apps/multi_session_registration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ target_link_libraries(
rlimgui
imguizmo_raylib
${PLATFORM_LASZIP_LIB}
${PLATFORM_MISCELLANEOUS_LIBS})
${PLATFORM_MISCELLANEOUS_LIBS}
spdlog::spdlog)

if(WIN32)
add_custom_command(
Expand Down
Loading
Loading