Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
14 lines
484 B
CMake
14 lines
484 B
CMake
# Add include folders to the library and targets that consume it
|
|
# the SYSTEM keyword suppresses warnings for users of the library
|
|
#
|
|
# By adding this directory as an include directory the user gets a
|
|
# namespace effect.
|
|
#
|
|
# IE:
|
|
# #include <gsl/gsl>
|
|
if(PROJECT_IS_TOP_LEVEL)
|
|
target_include_directories(GSL INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
|
|
else()
|
|
target_include_directories(GSL SYSTEM INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
|
|
endif()
|