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 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. include_directories(${CMAKE_INSTALL_PREFIX}/include)
  2. add_subdirectory("src")
  3. #option (SHARED_LEMMA_LIB off)
  4. #
  5. #if (SHARED_LEMMA_LIB)
  6. # add_library( lemmacore SHARED ${SOURCE} )
  7. #else()
  8. # add_library( lemmacore STATIC ${SOURCE} )
  9. #endif()
  10. add_library( lemmacore ${SOURCE} )
  11. set_target_properties(lemmacore PROPERTIES
  12. VERSION "${LEMMA_VERSION}"
  13. SOVERSION "${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
  14. PROJECT_LABEL "Lemma ${LABEL_SUFFIX}"
  15. )
  16. # Linking
  17. add_dependencies(lemmacore YAML-CPP)
  18. if (LEMMA_TINYXML_SUPPORT)
  19. add_dependencies(lemmacore TINYXML2)
  20. endif()
  21. if (LEMMA_MATIO_SUPPORT)
  22. add_dependencies(lemmacore MATIO)
  23. endif()
  24. if (LEMMA_VTK_SUPPORT)
  25. target_link_libraries(lemmacore ${VTK_LIBRARIES})
  26. target_link_libraries(lemmacore "matplot")
  27. endif()
  28. target_link_libraries(lemmacore "yaml-cpp")
  29. # Install
  30. install ( TARGETS lemmacore DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  31. option( LEMMA_BUILD_EXAMPLES "Compile example Lemma applications" OFF )
  32. if (LEMMA_BUILD_EXAMPLES)
  33. add_subdirectory(examples)
  34. endif()