Main Lemma Repository
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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()