123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # 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}")
-
- 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}"
- )
-
- # 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()
|