Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.cpp
/
Microservice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
128f10ef
authored
Aug 31, 2016
by
Adi Amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
copy all header files to internals
parent
5777a68d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
3 deletions
CMakeLists.txt
compile_commands.json
test/Microservice_Test.cpp
CMakeLists.txt
View file @
128f10ef
...
@@ -48,7 +48,43 @@ add_executable(test_MicroserviceClient test/Microservice_ClientTest.cpp) #EXCLUD
...
@@ -48,7 +48,43 @@ add_executable(test_MicroserviceClient test/Microservice_ClientTest.cpp) #EXCLUD
target_link_libraries
(
test_MicroserviceClient Microservice
)
target_link_libraries
(
test_MicroserviceClient Microservice
)
# install part
# install part
#set (CMAKE_INSTALL_PREFIX ../internals)
#file (GLOB_RECURSE INSTALL_FILES "src/*.h")
#install(FILES ${INSTALL_FILES} DESTINATION include/microservice)
#file (GLOB_RECURSE INSTALL_FILES "src/*.h")
#set (CMAKE_INSTALL_PREFIX ../internals)
#foreach ( file ${INSTALL_FILES} )
# get_filename_component(dir ${file} REALPATH )
# install( FILES ${file} DESTINATION include/${dir} )
#endforeach()
# install include files
#
set
(
CMAKE_INSTALL_PREFIX ../internals
)
set
(
CMAKE_INSTALL_PREFIX ../internals
)
# src
file
(
GLOB INSTALL_FILES
"src/*.h"
)
file
(
GLOB INSTALL_FILES
"src/*.h"
)
install
(
TARGETS Microservice DESTINATION lib
)
install
(
FILES
${
INSTALL_FILES
}
DESTINATION include/microservice
)
install
(
FILES
${
INSTALL_FILES
}
DESTINATION include/microservice
)
# src/common
file
(
GLOB INSTALL_FILES
"src/common/*.h"
)
install
(
FILES
${
INSTALL_FILES
}
DESTINATION include/microservice/common
)
# src/params
file
(
GLOB INSTALL_FILES
"src/params/*.h"
)
install
(
FILES
${
INSTALL_FILES
}
DESTINATION include/microservice/params
)
# src/impl
file
(
GLOB INSTALL_FILES
"src/impl/*.h"
)
install
(
FILES
${
INSTALL_FILES
}
DESTINATION include/microservice/impl
)
# src/impl/clients
file
(
GLOB INSTALL_FILES
"src/impl/clients/*.h"
)
install
(
FILES
${
INSTALL_FILES
}
DESTINATION include/microservice/impl/clients
)
# src/impl/servers
file
(
GLOB INSTALL_FILES
"src/impl/servers/*.h"
)
install
(
FILES
${
INSTALL_FILES
}
DESTINATION include/microservice/impl/servers
)
# src/handlers
file
(
GLOB INSTALL_FILES
"src/handlers/*.h"
)
install
(
FILES
${
INSTALL_FILES
}
DESTINATION include/microservice/handlers
)
# install lib files
#
install
(
TARGETS Microservice DESTINATION lib
)
compile_commands.json
View file @
128f10ef
This diff is collapsed.
Click to expand it.
test/Microservice_Test.cpp
View file @
128f10ef
...
@@ -90,7 +90,7 @@ public:
...
@@ -90,7 +90,7 @@ public:
};
};
void
run
NewMS
(){
void
run
_NSEMicroservice
(){
cMicroservice_BaseClientParams
HttpClientParams
(
"other-service"
,
true
,
10
,
false
,
"localhost"
,
32010
,
"localhost:6379"
);
cMicroservice_BaseClientParams
HttpClientParams
(
"other-service"
,
true
,
10
,
false
,
"localhost"
,
32010
,
"localhost:6379"
);
cMicroservice_BaseClientParams
RMQClientParams
(
"MyFirstQ@test1"
,
false
,
0
,
false
,
"localhost"
,
5672
);
cMicroservice_BaseClientParams
RMQClientParams
(
"MyFirstQ@test1"
,
false
,
0
,
false
,
"localhost"
,
5672
);
...
@@ -165,7 +165,7 @@ int main(int argc, char *argv[])
...
@@ -165,7 +165,7 @@ int main(int argc, char *argv[])
// testCache();
// testCache();
run
NewMS
();
run
_NSEMicroservice
();
if
(
argc
<
6
)
if
(
argc
<
6
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment