summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0041/CMP0041-NEW.cmake
blob: 605b79a008ee98cf6fb9368867f128f8454b9ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

cmake_policy(SET CMP0041 NEW)

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)