2020-06-12 13:04:14 +08:00
|
|
|
diff --git a/LASlib/src/CMakeLists.txt b/LASlib/src/CMakeLists.txt
|
2023-03-21 03:16:03 +08:00
|
|
|
index 1b170bf..408628c 100644
|
2020-06-12 13:04:14 +08:00
|
|
|
--- a/LASlib/src/CMakeLists.txt
|
|
|
|
+++ b/LASlib/src/CMakeLists.txt
|
2023-03-21 03:16:03 +08:00
|
|
|
@@ -99,17 +99,9 @@ if(MSVC)
|
2020-06-12 13:04:14 +08:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2023-03-21 03:16:03 +08:00
|
|
|
+install(TARGETS LASlib EXPORT laslib-targets
|
2020-06-12 13:04:14 +08:00
|
|
|
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
install(FILES ${LAS_INCLUDES} DESTINATION include/LASlib)
|
2023-03-21 03:16:03 +08:00
|
|
|
|
2020-06-12 13:04:14 +08:00
|
|
|
-if (MSVC)
|
|
|
|
- foreach( OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES} )
|
|
|
|
- install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../lib/${OUTPUTCONFIG} DESTINATION lib/LASlib)
|
|
|
|
- endforeach( OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES )
|
|
|
|
-else()
|
|
|
|
- install(TARGETS LASlib EXPORT laslib-targets
|
|
|
|
- ARCHIVE DESTINATION lib/LASlib
|
|
|
|
- LIBRARY DESTINATION lib/LASlib
|
|
|
|
- RUNTIME DESTINATION lib/LASlib)
|
|
|
|
- install(EXPORT laslib-targets DESTINATION lib/cmake/LASlib)
|
|
|
|
- install(FILES ${CMAKE_SOURCE_DIR}/LASlib/src/laslib-config.cmake DESTINATION lib/cmake/LASlib)
|
|
|
|
-endif(MSVC)
|
2023-03-21 03:16:03 +08:00
|
|
|
+install(EXPORT laslib-targets DESTINATION share/lastools/LASlib)
|
2020-06-12 13:04:14 +08:00
|
|
|
+install(FILES ${CMAKE_SOURCE_DIR}/LASlib/src/laslib-config.cmake DESTINATION share/lastools/LASlib)
|