summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/export/ForbiddenToExportImportedProperties.cmake
blob: 9c8653d8d4bcb923967fa8f425d08e8955ce02af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enable_language(CXX)
add_library(foo empty.cpp)
set_target_properties(foo PROPERTIES
  IMPORTED_FOOBAR "Some other string"
  EXPORT_PROPERTIES "IMPORTED_FOOBAR"
)
export(TARGETS foo FILE "${CMAKE_CURRENT_BINARY_DIR}/foo.cmake")
install(TARGETS foo EXPORT fooExport
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib
)