1234567891011121314151617181920212223242526272829303132333435363738394041 |
- add_subdirectory("src")
- add_library( lemmacore ${SOURCE} )
- target_include_directories( lemmacore PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
-
- set_target_properties(lemmacore PROPERTIES
- VERSION "${LEMMA_VERSION_NOQUOTES}"
- SOVERSION "${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
- PROJECT_LABEL "LemmaCore ${LABEL_SUFFIX}"
- )
-
- # External project dependencies
- add_dependencies(lemmacore YAML-CPP)
- if (LEMMA_TINYXML_SUPPORT)
- add_dependencies(lemmacore TINYXML2)
- endif()
- if (LEMMA_MATIO_SUPPORT)
- add_dependencies(lemmacore MATIO)
- endif()
-
- # Linking
- if ( LEMMA_VTK6_SUPPORT OR LEMMA_VTK7_SUPPORT )
- target_link_libraries(lemmacore ${VTK_LIBRARIES})
- # target_link_libraries(lemmacore "matplot")
- endif()
-
- target_link_libraries(lemmacore "yaml-cpp")
-
- # Testing
- if (LEMMA_ENABLE_TESTING)
- add_subdirectory(testing)
- endif()
-
- # Install
- install ( TARGETS lemmacore DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
- install ( FILES include/LemmaCore DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
- install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h" )
-
- # Examples
- if (LEMMA_BUILD_EXAMPLES)
- add_subdirectory(examples)
- endif()
|