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
641 B

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 464854d..6801276 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/shared
- COMPONENT dynamic_libraries)
-else()
- #
- # static libs
- #
-
- install(TARGETS ${mpn_static_lib_name}
- ARCHIVE
- DESTINATION lib/static
- COMPONENT static_libraries)
-endif()
+install(TARGETS ${target_name}
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
#
# headers