package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 lines
663 B

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5b1074..5767427 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -297,25 +297,10 @@ endif()
# TODO: package documentation files
-if(MCUT_BUILD_AS_SHARED_LIB)
- #
- # dynamic libs
- #
-
- install(TARGETS ${mpn_shared_lib_name}
- LIBRARY
- DESTINATION lib/mpn/shared
- COMPONENT dynamic_libraries)
-else()
- #
- # static libs
- #
-
- install(TARGETS ${mpn_static_lib_name}
- ARCHIVE
- DESTINATION lib/mpn/static
- COMPONENT static_libraries)
-endif()
+install(TARGETS ${target_name}
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
#
# headers