summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
author刘学利 <[email protected]>2019-05-13 14:36:03 +0800
committer刘学利 <[email protected]>2019-05-13 14:36:03 +0800
commite5c6c20fa3caaf154eb7ec47b4a3a261ce2b9575 (patch)
treef6173720e72af20d6343a895deb16b75b9244ca6 /CMakeLists.txt
parent57b1924b0581729d30727da07114fe6765a017f4 (diff)
Update CMakeLists.txt;增加安装库文件
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f48124..9ed0fe1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,7 +38,7 @@ file(GLOB SRC
# Shared Library Output
add_library(${lib_name}_shared SHARED ${SRC})
-set_target_properties(${lib_name}_shared PROPERTIES OUTPUT_NAME ${lib_name})
+set_target_properties(${lib_name}_shared PROPERTIES OUTPUT_NAME ${lib_name} LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_PREFIX}/lib")
# static Library Output
add_library(${lib_name}_static STATIC ${SRC})