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