Main Lemma Repository
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

CMakeLists.txt 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  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_NOQUOTES}"
  6. SOVERSION "${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
  7. PROJECT_LABEL "FDEM1D ${LABEL_SUFFIX}"
  8. )
  9. # Linking
  10. target_link_libraries(fdem1d "yaml-cpp")
  11. target_link_libraries(fdem1d "lemmacore")
  12. if ( KIHA_EM1D )
  13. target_link_libraries(fdem1d "kihaem1d")
  14. target_link_libraries(fdem1d "gfortran")
  15. endif()
  16. # Testing
  17. if (LEMMA_ENABLE_TESTING)
  18. add_subdirectory(testing)
  19. endif()
  20. # Install
  21. install ( TARGETS fdem1d DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  22. install ( FILES include/FDEM1D DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
  23. install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h")
  24. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ FILES_MATCHING PATTERN "FDEM1D")
  25. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/FDEM1D FILES_MATCHING PATTERN "*.h")
  26. # Examples
  27. if (LEMMA_BUILD_EXAMPLES)
  28. add_subdirectory(examples)
  29. endif()