Main Lemma Repository
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

CMakeLists.txt 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. add_subdirectory("src")
  2. add_library( tem1d ${TEM1DSOURCE} )
  3. target_include_directories( tem1d PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
  4. set_target_properties(tem1d PROPERTIES
  5. VERSION "${LEMMA_VERSION_NOQUOTES}"
  6. SOVERSION "${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
  7. PROJECT_LABEL "TEM1D ${LABEL_SUFFIX}"
  8. CXX_STANDARD 14
  9. CXX_STANDARD_REQUIRED ON
  10. )
  11. # Linking
  12. target_link_libraries(tem1d "lemmacore")
  13. target_link_libraries(tem1d "fdem1d")
  14. # Testing
  15. if (LEMMA_ENABLE_TESTING)
  16. add_subdirectory(testing)
  17. endif()
  18. # Install
  19. install ( TARGETS tem1d DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  20. install ( FILES include/TEM1D DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma )
  21. install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma FILES_MATCHING PATTERN "*.h")
  22. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/ FILES_MATCHING PATTERN "FDEM1D")
  23. #install ( DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Lemma/FDEM1D FILES_MATCHING PATTERN "*.h")
  24. # Examples
  25. if (LEMMA_BUILD_EXAMPLES)
  26. add_subdirectory(examples)
  27. endif()