Main Lemma Repository
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 707B

12345678910111213141516171819202122232425262728293031
  1. add_subdirectory("src")
  2. add_library( fdem1d ${FDEM1DSOURCE} )
  3. target_include_directories( fdem1d PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
  4. set_target_properties(fdem1d PROPERTIES
  5. VERSION "${LEMMA_VERSION}"
  6. SOVERSION "${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
  7. PROJECT_LABEL "FDEM1D ${LABEL_SUFFIX}"
  8. )
  9. # Linking
  10. target_link_libraries(fdem1d "lemmacore")
  11. if ( KIHA_EM1D )
  12. target_link_libraries(fdem1d "kihaem1d")
  13. target_link_libraries(fdem1d "gfortran")
  14. endif()
  15. # Testing
  16. if (LEMMA_ENABLE_TESTING)
  17. add_subdirectory(testing)
  18. endif()
  19. # Install
  20. install ( TARGETS fdem1d DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  21. # Examples
  22. if (LEMMA_BUILD_EXAMPLES)
  23. add_subdirectory(examples)
  24. endif()