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.
13 lines
392 B
13 lines
392 B
11 years ago
|
|
||
|
cmake_policy(SET CMP0041 OLD)
|
||
|
|
||
|
add_library(foo empty.cpp)
|
||
|
set_property(TARGET foo
|
||
|
PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
||
|
include/$<TARGET_PROPERTY:NAME>
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/include/$<TARGET_PROPERTY:NAME>
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/include/$<TARGET_PROPERTY:NAME>
|
||
|
)
|
||
|
install(TARGETS foo EXPORT FooExport DESTINATION lib)
|
||
|
install(EXPORT FooExport DESTINATION lib/cmake)
|