Try compiling launchpadlib-cpp too

main
Simon Quigley 1 week ago
parent 5aa8a0a6d3
commit 7970b95145

@ -7,6 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
find_package(CURL REQUIRED)
find_package(ZLIB REQUIRED)
find_package(YAML-CPP REQUIRED)
find_package(launchpadlib-cpp REQUIRED CONFIG)
include_directories(${CURL_INCLUDE_DIRS})
include_directories(${ZLIB_INCLUDE_DIRS})
@ -14,4 +15,4 @@ include_directories(${YAML_CPP_INCLUDE_DIR})
add_executable(fetch-indexes main.cpp utilities.cpp)
target_link_libraries(fetch-indexes ${CURL_LIBRARIES} ${ZLIB_LIBRARIES} yaml-cpp)
target_link_libraries(fetch-indexes ${CURL_LIBRARIES} ${ZLIB_LIBRARIES} yaml-cpp launchpad::launchpad)

@ -2,12 +2,19 @@
git pull
(cd ../launchpadlib-cpp && git pull
rm -rf build; mkdir build && (cd build &&
cmake .. -DCMAKE_INSTALL_PREFIX=/srv/lubuntu-ci/repos/ci-tools &&
make -j$(nproc)) &&
cmake --install . --prefix /srv/lubuntu-ci/repos/ci-tools &&
mv build/build-packages ../ && rm -rf build)
(cd fetch-indexes-cpp &&
rm -rf build; mkdir build && (cd build &&
cmake .. && make -j$(nproc)) &&
cmake .. -DCMAKE_PREFIX_PATH="/srv/lubuntu-ci/repos/ci-tools;${CMAKE_PREFIX_PATH}" && make -j$(nproc)) &&
mv build/fetch-indexes ../ && rm -rf build)
(cd build-packages-cpp &&
rm -rf build; mkdir build && (cd build &&
cmake .. && make -j$(nproc)) &&
cmake .. -DCMAKE_PREFIX_PATH="/srv/lubuntu-ci/repos/ci-tools;${CMAKE_PREFIX_PATH}" && make -j$(nproc)) &&
mv build/build-packages ../ && rm -rf build)

Loading…
Cancel
Save