2013-03-26 21:08:26 +04:00
|
|
|
|
2014-06-30 22:37:38 +04:00
|
|
|
enable_language(CXX)
|
2013-03-26 21:08:26 +04:00
|
|
|
|
|
|
|
add_library(testTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
|
2014-11-28 20:58:38 +03:00
|
|
|
|
|
|
|
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()
|
2013-03-26 21:08:26 +04:00
|
|
|
|
|
|
|
add_library(userTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
|
|
|
|
target_link_libraries(userTarget testTarget)
|