CMakeLists.txt 484 B

12345678910111213
  1. # Add include folders to the library and targets that consume it
  2. # the SYSTEM keyword suppresses warnings for users of the library
  3. #
  4. # By adding this directory as an include directory the user gets a
  5. # namespace effect.
  6. #
  7. # IE:
  8. # #include <gsl/gsl>
  9. if(PROJECT_IS_TOP_LEVEL)
  10. target_include_directories(GSL INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
  11. else()
  12. target_include_directories(GSL SYSTEM INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
  13. endif()