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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. CXX_STANDARD 14
  9. CXX_STANDARD_REQUIRED ON
  10. )
  11. # External project dependencies
  12. #add_dependencies(lemmacore YAML_CPP)
  13. if (LEMMA_TINYXML_SUPPORT)
  14. add_dependencies(lemmacore TINYXML2)
  15. endif()
  16. if (LEMMA_MATIO_SUPPORT)
  17. add_dependencies(lemmacore MATIO)
  18. endif()
  19. # Linking
  20. if ( LEMMA_VTK6_SUPPORT OR LEMMA_VTK7_SUPPORT )
  21. target_link_libraries(lemmacore ${VTK_LIBRARIES})
  22. # target_link_libraries(lemmacore "matplot")
  23. endif()
  24. if (WIN32)
  25. target_link_libraries(lemmacore "yaml-cppmdd")
  26. else()
  27. target_link_libraries(lemmacore "yaml-cpp")
  28. endif()
  29. # Testing
  30. if (LEMMA_ENABLE_TESTING)
  31. add_subdirectory(testing)
  32. endif()
  33. # Install
  34. install ( TARGETS lemmacore DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  35. install ( FILES include/LemmaCore DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
  36. install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h" )
  37. # Examples
  38. if (LEMMA_BUILD_EXAMPLES)
  39. add_subdirectory(examples)
  40. endif()