Main Lemma Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 971B

123456789101112131415161718192021222324252627282930313233343536373839
  1. add_subdirectory("src")
  2. add_library( lemmacore ${SOURCE} )
  3. target_include_directories( lemmacore PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
  4. set_target_properties(lemmacore PROPERTIES
  5. VERSION "${LEMMA_VERSION}"
  6. SOVERSION "${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
  7. PROJECT_LABEL "LemmaCore ${LABEL_SUFFIX}"
  8. )
  9. # External project dependencies
  10. add_dependencies(lemmacore YAML-CPP)
  11. if (LEMMA_TINYXML_SUPPORT)
  12. add_dependencies(lemmacore TINYXML2)
  13. endif()
  14. if (LEMMA_MATIO_SUPPORT)
  15. add_dependencies(lemmacore MATIO)
  16. endif()
  17. # Linking
  18. if ( LEMMA_VTK6_SUPPORT OR LEMMA_VTK7_SUPPORT )
  19. target_link_libraries(lemmacore ${VTK_LIBRARIES})
  20. target_link_libraries(lemmacore "matplot")
  21. endif()
  22. target_link_libraries(lemmacore "yaml-cpp")
  23. # Testing
  24. if (LEMMA_ENABLE_TESTING)
  25. add_subdirectory(testing)
  26. endif()
  27. # Install
  28. install ( TARGETS lemmacore DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  29. # Examples
  30. if (LEMMA_BUILD_EXAMPLES)
  31. add_subdirectory(examples)
  32. endif()