1 2 3 4 5 6 7 8
enable_language(CXX) add_library(foo empty.cpp) add_library(alias ALIAS foo) target_include_directories(alias PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)