vcpkg/ports/fmilib/unofficial-export.diff
Kai Pastor 2256cc983d
[fmilib] Cleanup, de-vendor libs, fix linux (#29834)
* [fmilib] change to the github and update to fix bug of libexpat

* add license

* Cleanup and devendor expat, minizip, zlib

* Merge target objects, not archives

* Update "supports" and ci baseline

* zlib is a transitive dependency

* Fix config

---------

Co-authored-by: FrankXie <v-frankxie@microsoft.com>
Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
Co-authored-by: Monica <v-liumonica@microsoft.com>
2023-03-14 17:40:36 -07:00

24 lines
741 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 583e15b..0319e3a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -300,10 +300,17 @@ endif()
file(COPY "${FMILIBRARYHOME}/Config.cmake/fmilib.h" DESTINATION "${FMILibrary_BINARY_DIR}")
+target_include_directories(${FMILIB_TARGETS} INTERFACE $<INSTALL_INTERFACE:include>)
install(TARGETS ${FMILIB_TARGETS}
+ EXPORT unofficial-fmilib-targets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
- RUNTIME DESTINATION lib
+ RUNTIME DESTINATION bin
+)
+install(EXPORT unofficial-fmilib-targets
+ FILE unofficial-fmilib-targets.cmake
+ NAMESPACE unofficial::fmilib::
+ DESTINATION share/unofficial-fmilib
)
install(FILES
"${FMILIBRARYHOME}/FMILIB_Readme.txt"