2015-07-21 21:27:00 +03:00
|
|
|
enable_language(CXX)
|
2013-12-23 20:07:26 +04:00
|
|
|
add_library(foo empty.cpp)
|
|
|
|
export(TARGETS foo FILE "${CMAKE_CURRENT_BINARY_DIR}/foo.cmake")
|
|
|
|
install(TARGETS foo EXPORT fooExport
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
)
|
|
|
|
export(EXPORT fooExport APPEND FILE "${CMAKE_CURRENT_BINARY_DIR}/foo.cmake")
|