1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # Configure EMSchur3D
- set(EMSCHUR3D_VERSION_MAJOR "0")
- set(EMSCHUR3D_VERSION_MINOR "0")
- set(EMSCHUR3D_VERSION_PATCH "1")
- set(EMSCHUR3D_VERSION "\"${EMSCHUR3D_VERSION_MAJOR}.${EMSCHUR3D_VERSION_MINOR}.${EMSCHUR3D_VERSION_PATCH}\"")
- set(EMSCHUR3D_VERSION_NOQUOTES "${EMSCHUR3D_VERSION_MAJOR}.${EMSCHUR3D_VERSION_MINOR}.${EMSCHUR3D_VERSION_PATCH}")
-
- configure_file (
- "${CMAKE_CURRENT_SOURCE_DIR}/config/EMSchur3DConfig.h.in"
- "${PROJECT_BINARY_DIR}/include/EMSchur3DConfig.h"
- )
- install ( FILES ${PROJECT_BINARY_DIR}/include/EMSchur3DConfig.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ )
-
- add_subdirectory("src")
- add_library( emschur3d ${EMSCHUR3DSOURCE} )
- target_include_directories( emschur3d PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
-
- set_target_properties(emschur3d PROPERTIES
- VERSION "${EMSCHUR3D_VERSION_NOQUOTES}"
- SOVERSION "${EMSCHUR3D_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
- PROJECT_LABEL "EMSCHUR3D ${LABEL_SUFFIX}"
- CXX_STANDARD_14
- CXX_STANDARD_REQUIRED_ON
- )
-
- # Linking
- target_link_libraries(emschur3d "lemmacore" "fdem1d" )
-
- # Linking
- if ( LEMMA_VTK6_SUPPORT OR LEMMA_VTK7_SUPPORT )
- target_link_libraries(emschur3d ${VTK_LIBRARIES})
- endif()
-
- # Testing
- if (LEMMA_ENABLE_TESTING)
- add_subdirectory(testing)
- endif()
-
- # Install
- install ( TARGETS emschur3d DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
- install ( FILES include/EMSchur3D DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
- install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h")
-
- #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ FILES_MATCHING PATTERN "FDEM1D")
- #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/FDEM1D FILES_MATCHING PATTERN "*.h")
-
- # Examples
- if (LEMMA_BUILD_EXAMPLES)
- add_subdirectory(examples)
- endif()
|