Lemma is an Electromagnetics API
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 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 "yaml-cpp")
  13. target_link_libraries(fdem1d "lemmacore")
  14. if ( KIHA_EM1D )
  15. target_link_libraries(fdem1d "kihaem1d")
  16. target_link_libraries(fdem1d "gfortran")
  17. endif()
  18. # Testing
  19. if (LEMMA_ENABLE_TESTING)
  20. add_subdirectory(testing)
  21. endif()
  22. # Install
  23. install ( TARGETS fdem1d DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  24. install ( FILES include/FDEM1D DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
  25. install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h")
  26. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ FILES_MATCHING PATTERN "FDEM1D")
  27. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/FDEM1D FILES_MATCHING PATTERN "*.h")
  28. # Examples
  29. if (LEMMA_BUILD_EXAMPLES)
  30. add_subdirectory(examples)
  31. endif()