You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
433 B
15 lines
433 B
9 years ago
|
enable_language(CXX)
|
||
|
add_library(testTarget empty.cpp)
|
||
|
|
||
|
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()
|
||
|
|
||
|
install(TARGETS testTarget EXPORT testTargets
|
||
|
DESTINATION lib
|
||
|
)
|
||
|
|
||
|
install(EXPORT testTargets DESTINATION lib/cmake)
|