summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0022/CMP0022-export.cmake
blob: 06147f39ee2a7178828eb00104b77dbea18a7773 (plain)
1
2
3
4
5
6
7
8
9
10
11

project(cmp0022NEW)

cmake_policy(SET CMP0022 NEW)

add_library(cmp0022NEW SHARED empty_vs6_1.cpp)
add_library(testLib SHARED empty_vs6_2.cpp)

set_property(TARGET cmp0022NEW APPEND PROPERTY LINK_INTERFACE_LIBRARIES testLib)

export(TARGETS cmp0022NEW testLib FILE "${CMAKE_CURRENT_BINARY_DIR}/cmp0022NEW.cmake")