summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2020-04-30 13:49:43 +0800
committerliuxueli <[email protected]>2020-04-30 13:49:43 +0800
commit13a35867c5e04b57738b1a8b95631938561d2677 (patch)
tree8d4e825ae68f63fd7cc4268cb60b32c20c20856d /CMakeLists.txt
parenta9c8dc1940ea802e792ed6f4eb39a1a5b73545a8 (diff)
修正默认安装路径,由/opt/MESA/lib/改为/home/mesasoft/sapp_run/
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59f7512..f740203 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,9 +47,9 @@ else()
endif()
set(CPACK_RPM_USER_FILELIST "%config(noreplace) ${CMAKE_INSTALL_PREFIX}/plug/protocol/dns/dns.inf"
- "%config(noreplace) ${CMAKE_INSTALL_PREFIX}/conf/dns/dns.conf")
-
+ "%config(noreplace) ${CMAKE_INSTALL_PREFIX}/conf/dns/dns.conf")
+set(CMAKE_INSTALL_PREFIX /home/mesasoft/sapp_run)
install(TARGETS dns LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/plug/protocol/dns COMPONENT LIBRARY)
install(FILES bin/dns.inf DESTINATION ${CMAKE_INSTALL_PREFIX}/plug/protocol/dns COMPONENT PROFILE)
install(FILES bin/dns.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/conf/dns COMPONENT PROFILE)
@@ -64,7 +64,7 @@ add_library(dns_test SHARED ${DEMO})
set_target_properties(dns_test PROPERTIES PREFIX "")
target_link_libraries(dns_test ${DNS_DEPEND_DYN_LIB})
-install(TARGETS dns_test LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/plug/business/dns_test)
-install(FILES test/bin/dns_test.inf DESTINATION ${CMAKE_INSTALL_PREFIX}/plug/business/dns_test)
+install(TARGETS dns_test LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/plug/business/dns_test COMPONENT LIBRARY)
+install(FILES test/bin/dns_test.inf DESTINATION ${CMAKE_INSTALL_PREFIX}/plug/business/dns_test COMPONENT PROFILE)
include(Package)