From 857cf0b90846cf0f4735262c9d3f9eb545b0d8f1 Mon Sep 17 00:00:00 2001
From: Dimitar Misev <misev@rasdaman.com>
Date: Fri, 17 Feb 2017 13:58:49 +0100
Subject: [PATCH] ticket:1478 - compile and install raspasswd
---
rascontrol/CMakeLists.txt | 31 ++++++++++++++++---------------
rascontrol/Makefile.am | 3 ++-
2 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/rascontrol/CMakeLists.txt b/rascontrol/CMakeLists.txt
index 295d97d..3bca623 100644
a
|
b
|
|
21 | 21 | # |
22 | 22 | ################################################################### |
23 | 23 | |
| 24 | find_package(Readline REQUIRED) |
| 25 | find_package(OpenSSL REQUIRED) |
| 26 | |
| 27 | add_executable(raspasswd raspasswd.hh raspasswd.cc |
| 28 | ../rasmgr/ras_crypto.cc ../rasmgr/ras_crypto.hh |
| 29 | ../raslib/log_config.cc ../raslib/log_config.hh |
| 30 | ../rascontrol/rasmgr_utils_comm.cc ../rascontrol/rasmgr_utils_comm.hh |
| 31 | ../rascontrol/rasmgr_utils_conf.cc ../rascontrol/rasmgr_utils_conf.hh) |
| 32 | |
| 33 | target_include_directories(raspasswd PUBLIC ${OPENSSL_INCLUDE_DIR}) |
| 34 | target_link_libraries(raspasswd network commline ${READLINE_LIBRARIES} ${OPENSSL_LIBRARIES}) |
| 35 | |
| 36 | install(TARGETS raspasswd |
| 37 | DESTINATION ${BIN_DIR}) |
| 38 | |
24 | 39 | if (NOT RMANRASNET) |
25 | | find_package(Readline REQUIRED) |
26 | | find_package(OpenSSL REQUIRED) |
27 | 40 | |
28 | 41 | add_executable(rascontrol rascontrol.hh rascontrol.cc |
29 | 42 | rascontrol_class.cc |
… |
… |
if (NOT RMANRASNET)
|
38 | 51 | install(TARGETS rascontrol |
39 | 52 | DESTINATION ${BIN_DIR}) |
40 | 53 | |
41 | | add_executable(raspasswd raspasswd.hh raspasswd.cc |
42 | | rasmgr_utils_comm.hh rasmgr_utils_comm.cc |
43 | | rasmgr_utils_conf.hh rasmgr_utils_conf.cc |
44 | | ../rasmgr/ras_crypto.cc ../rasmgr/ras_crypto.hh |
45 | | ../raslib/log_config.cc ../raslib/log_config.hh) |
46 | | |
47 | | target_include_directories(raspasswd PUBLIC ${OPENSSL_INCLUDE_DIR}) |
48 | | target_link_libraries(raspasswd network commline ${READLINE_LIBRARIES} ${OPENSSL_LIBRARIES}) |
49 | | |
50 | | install(TARGETS raspasswd |
51 | | DESTINATION ${BIN_DIR}) |
52 | | |
53 | | endif () |
54 | | No newline at end of file |
| 54 | endif () |
diff --git a/rascontrol/Makefile.am b/rascontrol/Makefile.am
index 30bc08a..e237250 100755
a
|
b
|
SRCCXX=rascontrol.cc rasmgr_utils_comm.cc rasmgrtest.cc raspasswd.cc \
|
33 | 33 | rascontrol_class.cc rasmgr_tester.cc rasmgr_utils_conf.cc rasmgrtester_conf.cc |
34 | 34 | |
35 | 35 | if RMANRASNET |
36 | | noinst_PROGRAMS=rascontrol raspasswd |
| 36 | noinst_PROGRAMS=rascontrol |
| 37 | bin_PROGRAMS=raspasswd |
37 | 38 | else |
38 | 39 | bin_PROGRAMS=rascontrol raspasswd |
39 | 40 | endif |