CMakeLists.txt 583 B

12345678910111213141516171819202122232425262728293031
  1. add_library(geom_helpers SHARED
  2. compare.cpp
  3. knots.cpp
  4. split.cpp
  5. io.cpp
  6. )
  7. target_include_directories(geom_helpers
  8. SYSTEM BEFORE PUBLIC
  9. ${LIB2GEOM_INCLUDE_DIRS}
  10. )
  11. target_link_libraries(geom_helpers ${LIB2GEOM_LIBRARIES} fmt)
  12. install(
  13. TARGETS geom_helpers
  14. EXPORT geom_helpers
  15. LIBRARY DESTINATION lib
  16. ARCHIVE DESTINATION lib
  17. )
  18. export(
  19. EXPORT geom_helpers
  20. FILE "${CMAKE_CURRENT_BINARY_DIR}/geom_helpers-config.cmake"
  21. )
  22. install(
  23. EXPORT geom_helpers
  24. FILE "geom_helpers-config.cmake"
  25. DESTINATION "lib/cmake/geom_helpers"
  26. )