Surface NMR forward modelling
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

CMakeLists.txt 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Configure Merlin
  2. set(MERLIN_VERSION_MAJOR "0")
  3. set(MERLIN_VERSION_MINOR "1")
  4. set(MERLIN_VERSION_PATCH "0")
  5. set(MERLIN_VERSION "\"${MERLIN_VERSION_MAJOR}.${MERLIN_VERSION_MINOR}.${MERLIN_VERSION_PATCH}\"")
  6. set(MERLIN_VERSION_NOQUOTES "${MERLIN_VERSION_MAJOR}.${MERLIN_VERSION_MINOR}.${MERLIN_VERSION_PATCH}")
  7. configure_file (
  8. "${CMAKE_CURRENT_SOURCE_DIR}/config/MerlinConfig.h.in"
  9. "${PROJECT_BINARY_DIR}/include/MerlinConfig.h"
  10. )
  11. install ( FILES ${PROJECT_BINARY_DIR}/include/MerlinConfig.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ )
  12. add_subdirectory("src")
  13. add_library( merlin ${MERLINSOURCE} )
  14. target_include_directories( merlin PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
  15. set_target_properties(merlin PROPERTIES
  16. VERSION "${MERLIN_VERSION_NOQUOTES}"
  17. SOVERSION "${MERLIN_VERSION_MAJOR}.${MERLIN_VERSION_MINOR}"
  18. PROJECT_LABEL "MERLIN ${LABEL_SUFFIX}"
  19. )
  20. # Linking
  21. target_link_libraries(merlin "lemmacore" "fdem1d" )
  22. # Linking
  23. if ( LEMMA_VTK6_SUPPORT OR LEMMA_VTK7_SUPPORT )
  24. target_link_libraries(merlin ${VTK_LIBRARIES})
  25. endif()
  26. # Testing
  27. if (LEMMA_ENABLE_TESTING)
  28. add_subdirectory(testing)
  29. endif()
  30. # Python Bindings
  31. if (LEMMA_PYTHON3_BINDINGS)
  32. add_subdirectory(python)
  33. endif()
  34. # Install
  35. install ( TARGETS merlin DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  36. install ( FILES include/Merlin DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
  37. install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h")
  38. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ FILES_MATCHING PATTERN "FDEM1D")
  39. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/FDEM1D FILES_MATCHING PATTERN "*.h")
  40. # Examples
  41. if (LEMMA_BUILD_EXAMPLES)
  42. add_subdirectory(examples)
  43. endif()