option(PSEMEK_GEOM_ROBUST_PREDICATES "Use robust geometric predicates" OFF) if(PSEMEK_GEOM_ROBUST_PREDICATES) find_package(Boost REQUIRED) find_package(GMP REQUIRED) endif() file(GLOB_RECURSE PSEMEK_GEOM_HEADERS "include/*.hpp") file(GLOB_RECURSE PSEMEK_GEOM_SOURCES "source/*.cpp") psemek_add_library(psemek-geom ${PSEMEK_GEOM_HEADERS} ${PSEMEK_GEOM_SOURCES}) target_include_directories(psemek-geom PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include") target_link_libraries(psemek-geom PUBLIC psemek-util) if(PSEMEK_GEOM_ROBUST_PREDICATES) target_link_libraries(psemek-geom PUBLIC Boost::boost GMP) target_compile_definitions(psemek-geom PUBLIC -DPSEMEK_GEOM_ROBUST_PREDICATES=1) endif() psemek_glob_tests(psemek-geom tests)