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