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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. option ( LEMMA_MODULE_DCIP TRUE )
  2. if (LEMMA_MODULE_DCIP)
  3. # Configure DCIP
  4. set(DCIP_VERSION_MAJOR "0")
  5. set(DCIP_VERSION_MINOR "0")
  6. set(DCIP_VERSION_PATCH "1")
  7. set(DCIP_VERSION "\"${DCIP_VERSION_MAJOR}.${DCIP_VERSION_MINOR}.${DCIP_VERSION_PATCH}\"")
  8. set(DCIP_VERSION_NOQUOTES "${DCIP_VERSION_MAJOR}.${DCIP_VERSION_MINOR}.${DCIP_VERSION_PATCH}")
  9. configure_file (
  10. "${CMAKE_CURRENT_SOURCE_DIR}/config/DCIPConfig.h.in"
  11. "${PROJECT_BINARY_DIR}/include/DCIPConfig.h"
  12. )
  13. install ( FILES ${PROJECT_BINARY_DIR}/include/DCIPConfig.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ )
  14. add_subdirectory("src")
  15. add_library( dcip ${DCIPSOURCE} )
  16. target_include_directories( dcip PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
  17. set_target_properties(dcip PROPERTIES
  18. VERSION "${DCIP_VERSION_NOQUOTES}"
  19. SOVERSION "${DCIP_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
  20. PROJECT_LABEL "DCIP ${LABEL_SUFFIX}"
  21. CXX_STANDARD 14
  22. CXX_STANDARD_REQUIRED ON
  23. )
  24. # Linking
  25. target_link_libraries(dcip "lemmacore" "fdem1d" )
  26. # Linking
  27. target_link_libraries(dcip ${VTK_LIBRARIES})
  28. # Testing
  29. #if (LEMMA_ENABLE_TESTING)
  30. # add_subdirectory(testing)
  31. #endif()
  32. # Install
  33. install ( TARGETS dcip DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  34. install ( FILES include/DCIP DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
  35. install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h")
  36. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ FILES_MATCHING PATTERN "FDEM1D")
  37. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/FDEM1D FILES_MATCHING PATTERN "*.h")
  38. # Examples
  39. #if (LEMMA_BUILD_EXAMPLES)
  40. # add_subdirectory(examples)
  41. #endif()
  42. endif()