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
345 B
13 lines
345 B
6 years ago
|
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
|
||
|
)
|