Lemma is an Electromagnetics API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

CMakeLists.txt 1009B

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 (TINYXML_SUPPORT)
  19. add_dependencies(lemmacore TINYXML2)
  20. endif()
  21. if (MATIO_SUPPORT)
  22. add_dependencies(lemmacore MATIO)
  23. endif()
  24. if (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( LEMMABUILDEXAMPLES "Compile example Lemma applications" OFF )
  32. if (LEMMABUILDEXAMPLES)
  33. add_subdirectory(examples)
  34. endif()