39 lines
1 KiB
Diff
39 lines
1 KiB
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 7040709..a4b8c61 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -1872,12 +1872,30 @@ endif()
|
||
|
|
||
|
# mark targets as optional so we can install them separately if needed
|
||
|
# (e.g. "make lib" or "make shared" followed by "make install/fast")
|
||
|
-install(TARGETS gmsh DESTINATION ${GMSH_BIN} OPTIONAL)
|
||
|
+install(
|
||
|
+ TARGETS gmsh
|
||
|
+ RUNTIME DESTINATION bin
|
||
|
+ LIBRARY DESTINATION lib
|
||
|
+ ARCHIVE DESTINATION lib
|
||
|
+ OPTIONAL
|
||
|
+)
|
||
|
if(ENABLE_BUILD_LIB)
|
||
|
- install(TARGETS lib DESTINATION ${GMSH_LIB} OPTIONAL)
|
||
|
+ install(
|
||
|
+ TARGETS lib
|
||
|
+ RUNTIME DESTINATION bin
|
||
|
+ LIBRARY DESTINATION lib
|
||
|
+ ARCHIVE DESTINATION lib
|
||
|
+ OPTIONAL
|
||
|
+ )
|
||
|
endif()
|
||
|
if(ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC)
|
||
|
- install(TARGETS shared DESTINATION ${GMSH_LIB} OPTIONAL)
|
||
|
+ install(
|
||
|
+ TARGETS shared
|
||
|
+ RUNTIME DESTINATION bin
|
||
|
+ LIBRARY DESTINATION lib
|
||
|
+ ARCHIVE DESTINATION lib
|
||
|
+ OPTIONAL
|
||
|
+ )
|
||
|
endif()
|
||
|
|
||
|
if(ENABLE_ONELAB AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/onelab)
|