diff options
Diffstat (limited to 'Tests/RunCMake/InterfaceLibrary/target_commands.cmake')
-rw-r--r-- | Tests/RunCMake/InterfaceLibrary/target_commands.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/InterfaceLibrary/target_commands.cmake b/Tests/RunCMake/InterfaceLibrary/target_commands.cmake new file mode 100644 index 0000000000..3182e8933e --- /dev/null +++ b/Tests/RunCMake/InterfaceLibrary/target_commands.cmake @@ -0,0 +1,13 @@ + +add_library(iface INTERFACE) + +target_link_libraries(iface PRIVATE foo) +target_link_libraries(iface PUBLIC foo) +target_link_libraries(iface foo) +target_link_libraries(iface LINK_INTERFACE_LIBRARIES foo) + +target_include_directories(iface PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}") +target_include_directories(iface PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") + +target_compile_definitions(iface PRIVATE SOME_DEFINE) +target_compile_definitions(iface PUBLIC SOME_DEFINE) |