mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 23:57:44 +00:00
6da65b3907
Use the same rules for paths in source and binary dirs in installed INTERFACE_SOURCES as are used for INTERFACE_INCLUDE_DIRECTORIES.
14 lines
419 B
CMake
14 lines
419 B
CMake
|
|
enable_language(CXX)
|
|
|
|
add_library(testTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
|
|
|
|
if (TEST_PROP STREQUAL INCLUDE_DIRECTORIES)
|
|
set_property(TARGET testTarget PROPERTY INTERFACE_INCLUDE_DIRECTORIES "$<1:foo>")
|
|
else()
|
|
set_property(TARGET testTarget PROPERTY INTERFACE_SOURCES "$<1:empty.cpp>")
|
|
endif()
|
|
|
|
add_library(userTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
|
|
target_link_libraries(userTarget testTarget)
|