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.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Configure EMSchur3D
  2. set(DCIP_VERSION_MAJOR "0")
  3. set(DCIP_VERSION_MINOR "0")
  4. set(DCIP_VERSION_PATCH "1")
  5. set(DCIP_VERSION "\"${DCIP_VERSION_MAJOR}.${DCIP_VERSION_MINOR}.${DCIP_VERSION_PATCH}\"")
  6. set(DCIP_VERSION_NOQUOTES "${DCIP_VERSION_MAJOR}.${DCIP_VERSION_MINOR}.${DCIP_VERSION_PATCH}")
  7. option ( LEMMA_MODULE_DCIP TRUE )
  8. configure_file (
  9. "${CMAKE_CURRENT_SOURCE_DIR}/config/DCIPConfig.h.in"
  10. "${PROJECT_BINARY_DIR}/include/DCIPConfig.h"
  11. )
  12. install ( FILES ${PROJECT_BINARY_DIR}/include/EMSchur3DConfig.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ )
  13. add_subdirectory("src")
  14. add_library( dcip ${DCIPSOURCE} )
  15. target_include_directories( dcip PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
  16. set_target_properties(dcip PROPERTIES
  17. VERSION "${DCIP_VERSION_NOQUOTES}"
  18. SOVERSION "${DCIP_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
  19. PROJECT_LABEL "DCIP ${LABEL_SUFFIX}"
  20. CXX_STANDARD 14
  21. CXX_STANDARD_REQUIRED ON
  22. )
  23. # Linking
  24. target_link_libraries(dcip "lemmacore" "fdem1d" )
  25. # Linking
  26. target_link_libraries(dcip ${VTK_LIBRARIES})
  27. # Testing
  28. #if (LEMMA_ENABLE_TESTING)
  29. # add_subdirectory(testing)
  30. #endif()
  31. # Install
  32. install ( TARGETS dcip DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  33. install ( FILES include/DCIP 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()