# HG changeset patch # User František Kučera # Date 1575387002 -3600 # Node ID 5dd0bfb430a13633d4709403382a9eaeee90e0dd # Parent e3de8202fdb4ea478ea89867177a45014aac5624 rename and make shared library: relpipe-lib-protocol.cpp → relpipe-lib-common.cpp diff -r e3de8202fdb4 -r 5dd0bfb430a1 nbproject/configurations.xml --- a/nbproject/configurations.xml Wed Oct 30 16:47:42 2019 +0100 +++ b/nbproject/configurations.xml Tue Dec 03 16:30:02 2019 +0100 @@ -76,6 +76,15 @@ ${MAKE} -f Makefile ${MAKE} -f Makefile clean build/Debug/src/welcome + + + ../relpipe-lib-common.cpp/include + build/Debug/src + + + relpipe_lib_writer_cpp_EXPORTS + + build/Debug @@ -85,13 +94,6 @@ - - ../relpipe-lib-protocol.cpp/include - build/Debug/src - - - relpipe_lib_writer_cpp_EXPORTS - diff -r e3de8202fdb4 -r 5dd0bfb430a1 src/CMakeLists.txt --- a/src/CMakeLists.txt Wed Oct 30 16:47:42 2019 +0100 +++ b/src/CMakeLists.txt Tue Dec 03 16:30:02 2019 +0100 @@ -20,7 +20,7 @@ # Relpipe libraries: INCLUDE(FindPkgConfig) -pkg_check_modules (RELPIPE_LIBS relpipe-lib-protocol.cpp) +pkg_check_modules (RELPIPE_LIBS relpipe-lib-common.cpp) include_directories(${RELPIPE_LIBS_INCLUDE_DIRS}) link_directories(${RELPIPE_LIBS_LIBRARY_DIRS}) @@ -37,6 +37,9 @@ Factory.cpp ) +# Link libraries: +target_link_libraries(${LIBRARY_FILE} ${RELPIPE_LIBS_LIBRARIES}) + install(TARGETS ${LIBRARY_FILE} DESTINATION lib/relpipe) # TODO: add version and symlink install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_CODE}.cpp.pc" DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/) install(DIRECTORY ../include/ DESTINATION include) diff -r e3de8202fdb4 -r 5dd0bfb430a1 src/pkg-config.cpp.pc.in --- a/src/pkg-config.cpp.pc.in Wed Oct 30 16:47:42 2019 +0100 +++ b/src/pkg-config.cpp.pc.in Tue Dec 03 16:30:02 2019 +0100 @@ -6,5 +6,7 @@ Description: @PROJECT_DESCRIPTION@ Version: @PROJECT_VERSION@ +Requires: relpipe-lib-common.cpp = @PROJECT_VERSION@ + Libs: -L${libdir} -l@LIBRARY_FILE@ Cflags: -I${includedir}