2013-03-24 20:18:17 +00:00
|
|
|
|
2014-06-30 18:37:38 +00:00
|
|
|
enable_language(CXX)
|
2013-03-24 20:18:17 +00:00
|
|
|
|
|
|
|
add_library(testTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
|
2014-11-28 17:58:38 +00:00
|
|
|
if (TEST_PROP STREQUAL INCLUDE_DIRECTORIES)
|
|
|
|
set_property(TARGET testTarget PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_BINARY_DIR}/foo")
|
|
|
|
else()
|
|
|
|
set_property(TARGET testTarget PROPERTY INTERFACE_SOURCES "${CMAKE_CURRENT_BINARY_DIR}/empty.cpp")
|
|
|
|
endif()
|
2013-03-24 20:18:17 +00:00
|
|
|
|
|
|
|
install(TARGETS testTarget EXPORT testTargets
|
|
|
|
DESTINATION lib
|
|
|
|
)
|
|
|
|
|
|
|
|
install(EXPORT testTargets DESTINATION lib/cmake)
|