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 772B

123456789101112131415161718192021222324252627282930
  1. include_directories(${CMAKE_INSTALL_PREFIX}/include)
  2. add_subdirectory("src")
  3. add_library( lemmacore SHARED ${SOURCE} )
  4. set_target_properties(lemmacore PROPERTIES
  5. VERSION ${LEMMA_VERSION_MAJOR}
  6. SOVERSION ${LEMMA_VERSION})
  7. # Linking
  8. add_dependencies(lemmacore YAML-CPP)
  9. if (TINYXML_SUPPORT)
  10. add_dependencies(lemmacore TINYXML2)
  11. endif()
  12. if (MATIO_SUPPORT)
  13. add_dependencies(lemmacore MATIO)
  14. endif()
  15. if (VTK_SUPPORT)
  16. target_link_libraries(lemmacore ${VTK_LIBRARIES})
  17. target_link_libraries(lemmacore "matplot")
  18. endif()
  19. target_link_libraries(lemmacore "yaml-cpp")
  20. # Install
  21. install ( TARGETS lemmacore DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  22. option( BUILDEXAMPLES "Compile example Lemma applications" OFF )
  23. if (BUILDEXAMPLES)
  24. add_subdirectory(examples)
  25. endif()