vcpkg/ports/liblemon/cmake.patch
Navid Rahimi fae4bd406a Adding OGDF and LEMON library port (#3779)
* Adding OGDF library port

* Adding C++ Graph library - LEMON

* [liblemon][ogdf] Rename lemon -> liblemon. Fix cmake targets.
2018-07-03 04:36:18 -07:00

35 lines
770 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03e1cc7..fd9d737 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -280,6 +280,13 @@ ELSEIF(WIN32)
)
ENDIF()
+install(
+ EXPORT lemon-targets
+ FILE lemon-config.cmake
+ NAMESPACE lemon::
+ DESTINATION share/lemon
+)
+
CONFIGURE_FILE(
${PROJECT_SOURCE_DIR}/cmake/version.cmake.in
${PROJECT_BINARY_DIR}/cmake/version.cmake
diff --git a/lemon/CMakeLists.txt b/lemon/CMakeLists.txt
index 4e6567e..76f9cae 100644
--- a/lemon/CMakeLists.txt
+++ b/lemon/CMakeLists.txt
@@ -71,6 +71,11 @@ INSTALL(
COMPONENT library
)
+install(TARGETS lemon EXPORT lemon-targets
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
INSTALL(
DIRECTORY . bits concepts
DESTINATION include/lemon