|
|
@ -22,8 +22,7 @@ include_directories(/srv/lubuntu-ci/repos/ci-tools/include/launchpadlib-cpp)
|
|
|
|
# Create the shared library liblubuntuci.so
|
|
|
|
# Create the shared library liblubuntuci.so
|
|
|
|
add_library(lubuntuci SHARED common.cpp utilities.cpp)
|
|
|
|
add_library(lubuntuci SHARED common.cpp utilities.cpp)
|
|
|
|
target_include_directories(lubuntuci PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
target_include_directories(lubuntuci PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
target_include_directories(lubuntuci PRIVATE ${CURL_INCLUDE_DIRS} ${YAML_CPP_LIBRARIES})
|
|
|
|
target_link_libraries(lubuntuci PUBLIC yaml-cpp::yaml-cpp PRIVATE CURL::libcurl /srv/lubuntu-ci/repos/ci-tools/lib/liblaunchpad.so)
|
|
|
|
target_link_libraries(lubuntuci PRIVATE CURL::libcurl yaml-cpp /srv/lubuntu-ci/repos/ci-tools/lib/liblaunchpad.so)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Ensure liblubuntuci has proper RPATH
|
|
|
|
# Ensure liblubuntuci has proper RPATH
|
|
|
|
set_target_properties(lubuntuci PROPERTIES
|
|
|
|
set_target_properties(lubuntuci PROPERTIES
|
|
|
@ -33,16 +32,18 @@ set_target_properties(lubuntuci PROPERTIES
|
|
|
|
|
|
|
|
|
|
|
|
# build-packages executable
|
|
|
|
# build-packages executable
|
|
|
|
add_executable(build-packages build-packages.cpp)
|
|
|
|
add_executable(build-packages build-packages.cpp)
|
|
|
|
target_include_directories(build-packages PRIVATE ${LIBGIT2_LIBRARIES})
|
|
|
|
target_include_directories(build-packages PRIVATE /srv/lubuntu-ci/repos/ci-tools/include/launchpadlib-cpp)
|
|
|
|
target_link_libraries(build-packages PRIVATE lubuntuci PkgConfig::LIBGIT2)
|
|
|
|
target_link_libraries(build-packages PRIVATE lubuntuci PkgConfig::LIBGIT2 yaml-cpp::yaml-cpp)
|
|
|
|
|
|
|
|
|
|
|
|
# fetch-indexes executable
|
|
|
|
# fetch-indexes executable
|
|
|
|
add_executable(fetch-indexes fetch-indexes.cpp utilities.cpp)
|
|
|
|
add_executable(fetch-indexes fetch-indexes.cpp utilities.cpp)
|
|
|
|
target_include_directories(fetch-indexes PRIVATE ${CURL_INCLUDE_DIRS} ${YAML_CPP_LIBRARIES} ${ZLIB_INCLUDE_DIRS} /srv/lubuntu-ci/repos/ci-tools/include/launchpadlib-cpp)
|
|
|
|
target_include_directories(fetch-indexes PRIVATE /srv/lubuntu-ci/repos/ci-tools/include/launchpadlib-cpp)
|
|
|
|
target_link_libraries(fetch-indexes PRIVATE lubuntuci CURL::libcurl yaml-cpp ZLIB::ZLIB)
|
|
|
|
target_link_libraries(fetch-indexes PRIVATE lubuntuci CURL::libcurl yaml-cpp::yaml-cpp ZLIB::ZLIB)
|
|
|
|
|
|
|
|
|
|
|
|
# update-maintainer executable
|
|
|
|
# update-maintainer executable
|
|
|
|
add_executable(update-maintainer update-maintainer.cpp)
|
|
|
|
add_executable(update-maintainer update-maintainer.cpp)
|
|
|
|
|
|
|
|
target_include_directories(update-maintainer PRIVATE /srv/lubuntu-ci/repos/ci-tools/include/launchpadlib-cpp)
|
|
|
|
|
|
|
|
target_link_libraries(update-maintainer PRIVATE lubuntuci yaml-cpp::yaml-cpp CURL::libcurl)
|
|
|
|
|
|
|
|
|
|
|
|
# Ensure executables have proper RPATH
|
|
|
|
# Ensure executables have proper RPATH
|
|
|
|
set_target_properties(build-packages fetch-indexes update-maintainer PROPERTIES
|
|
|
|
set_target_properties(build-packages fetch-indexes update-maintainer PROPERTIES
|
|
|
|