Main Lemma Repository
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. CXX_STANDARD 14
  9. CXX_STANDARD_REQUIRED ON
  10. )
  11. # Linking
  12. target_link_libraries(fdem1d "lemmacore")
  13. if ( KIHA_EM1D )
  14. target_link_libraries(fdem1d "kihaem1d")
  15. if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  16. # using GCC
  17. target_link_libraries(fdem1d "gfortran")
  18. elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
  19. # using Intel C++
  20. target_link_libraries(fdem1d "ifcore" "imf" "svml" "intlc")
  21. endif()
  22. endif()
  23. # Testing
  24. if (LEMMA_ENABLE_TESTING)
  25. add_subdirectory(testing)
  26. endif()
  27. # Python Bindings
  28. if (LEMMA_PYTHON3_BINDINGS)
  29. add_subdirectory(python)
  30. endif()
  31. # Install
  32. install ( TARGETS fdem1d DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  33. install ( FILES include/FDEM1D DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
  34. install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h")
  35. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ FILES_MATCHING PATTERN "FDEM1D")
  36. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/FDEM1D FILES_MATCHING PATTERN "*.h")
  37. # Examples
  38. if (LEMMA_BUILD_EXAMPLES)
  39. add_subdirectory(examples)
  40. endif()