Main Lemma Repository
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

CMakeLists.txt 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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_NOQUOTES}"
  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. install ( FILES include/LemmaCore DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
  30. install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h" )
  31. # Examples
  32. if (LEMMA_BUILD_EXAMPLES)
  33. add_subdirectory(examples)
  34. endif()