3D EM based on Schur decomposition
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Configure EMSchur3D
  2. set(EMSCHUR3D_VERSION_MAJOR "0")
  3. set(EMSCHUR3D_VERSION_MINOR "0")
  4. set(EMSCHUR3D_VERSION_PATCH "1")
  5. set(EMSCHUR3D_VERSION "\"${EMSCHUR3D_VERSION_MAJOR}.${EMSCHUR3D_VERSION_MINOR}.${EMSCHUR3D_VERSION_PATCH}\"")
  6. set(EMSCHUR3D_VERSION_NOQUOTES "${EMSCHUR3D_VERSION_MAJOR}.${EMSCHUR3D_VERSION_MINOR}.${EMSCHUR3D_VERSION_PATCH}")
  7. configure_file (
  8. "${CMAKE_CURRENT_SOURCE_DIR}/config/EMSchur3DConfig.h.in"
  9. "${PROJECT_BINARY_DIR}/include/EMSchur3DConfig.h"
  10. )
  11. install ( FILES ${PROJECT_BINARY_DIR}/include/EMSchur3DConfig.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ )
  12. add_subdirectory("src")
  13. add_library( emschur3d ${EMSCHUR3DSOURCE} )
  14. target_include_directories( emschur3d PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
  15. set_target_properties(emschur3d PROPERTIES
  16. VERSION "${EMSCHUR3D_VERSION_NOQUOTES}"
  17. SOVERSION "${EMSCHUR3D_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
  18. PROJECT_LABEL "EMSCHUR3D ${LABEL_SUFFIX}"
  19. )
  20. # Linking
  21. target_link_libraries(emschur3d "lemmacore" "fdem1d" )
  22. # Linking
  23. if ( LEMMA_VTK6_SUPPORT OR LEMMA_VTK7_SUPPORT )
  24. target_link_libraries(emschur3d ${VTK_LIBRARIES})
  25. endif()
  26. # Testing
  27. if (LEMMA_ENABLE_TESTING)
  28. add_subdirectory(testing)
  29. endif()
  30. # Install
  31. install ( TARGETS emschur3d DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  32. install ( FILES include/EMSchur3D DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
  33. install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h")
  34. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ FILES_MATCHING PATTERN "FDEM1D")
  35. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/FDEM1D FILES_MATCHING PATTERN "*.h")
  36. # Examples
  37. if (LEMMA_BUILD_EXAMPLES)
  38. add_subdirectory(examples)
  39. endif()