3D EM based on Schur decomposition
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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. add_subdirectory("src")
  8. add_library( emschur3d ${EMSCHUR3DSOURCE} )
  9. target_include_directories( emschur3d PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
  10. set_target_properties(emschur3d PROPERTIES
  11. VERSION "${EMSCHUR3D_VERSION_NOQUOTES}"
  12. SOVERSION "${EMSCHUR3D_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
  13. PROJECT_LABEL "EMSCHUR3D ${LABEL_SUFFIX}"
  14. )
  15. # Linking
  16. target_link_libraries(emschur3d "lemmacore" "fdem1d" )
  17. # Linking
  18. if ( LEMMA_VTK6_SUPPORT OR LEMMA_VTK7_SUPPORT )
  19. target_link_libraries(emschur3d ${VTK_LIBRARIES})
  20. endif()
  21. # Testing
  22. if (LEMMA_ENABLE_TESTING)
  23. add_subdirectory(testing)
  24. endif()
  25. # Install
  26. install ( TARGETS emschur3d DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  27. install ( FILES include/EMSchur3D DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
  28. install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h")
  29. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ FILES_MATCHING PATTERN "FDEM1D")
  30. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/FDEM1D FILES_MATCHING PATTERN "*.h")
  31. # Examples
  32. if (LEMMA_BUILD_EXAMPLES)
  33. add_subdirectory(examples)
  34. endif()