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
f9187f18
authored
May 18, 2016
by
amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
moving to 3party repo
parent
336861d5
Pipeline
#69
skipped in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
CMakeLists.txt
CMakeLists.txt
View file @
f9187f18
...
...
@@ -17,30 +17,27 @@ set ( PROJECT_LINK_LIBS -ljson -lhiredis -lcpprest -lboost_random -lboost_chron
-lboost_system -lboost_thread -lboost_regex -lboost_filesystem -lpthread
-lboost_random -lboost_chrono -lboost_system -lboost_thread -lssl
-lcrypto -lrabbitmq -llog4cpp
)
link_directories
(
3party/lib
)
link_directories
(
../
3party/lib
)
# h files locations
include_directories
(
src
)
include_directories
(
SYSTEM 3party/rapidjson-0.11/include/rapidjson
)
include_directories
(
SYSTEM 3party/mongoose
)
include_directories
(
SYSTEM
../
3party/rapidjson-0.11/include/rapidjson
)
include_directories
(
SYSTEM
../
3party/mongoose
)
include_directories
(
SYSTEM /usr/include/hiredis
)
# recursive search files cpp files
file
(
GLOB_RECURSE SOURCES
"src/*.cpp"
)
set
(
3PARTY_SOURCES 3party/mongoose/mongoose.c
)
set
(
3PARTY_SOURCES
../
3party/mongoose/mongoose.c
)
#Generate the shared library from the sources
add_library
(
Microservice SHARED
${
SOURCES
}
${
3PARTY_SOURCES
}
)
target_link_libraries
(
Microservice
${
PROJECT_LINK_LIBS
}
)
set_target_properties
(
Microservice PROPERTIES VERSION
${
Microservice_VERSION_STRING
}
SOVERSION
${
Microservice_VERSION_MAJOR
}
)
#Set the location for library installation -- i.e., /usr/lib in this case
# not really necessary in this example. Use "sudo make install" to apply
#install(TARGETS Microservice DESTINATION${CMAKE_BINARY_DIR}/build/target)
# Test part
#set (Microservice_TEST_SOURCES test/Microservice_Test.cpp )
add_executable
(
test_Microservice test/Microservice_Test.cpp
)
#EXCLUDE_FROM_ALL ${Microservice_TEST_SOURCES})
target_link_libraries
(
test_Microservice Microservice
)
# install part
set
(
CMAKE_INSTALL_PREFIX ../internals
)
file
(
GLOB INSTALL_FILES
"src/*.h"
)
...
...
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