mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 11:35:33 -04:00

CMake failed to find Qt on the Launchpad build server for Ubuntu 18.04
for some reason. (...though it worked on 16.04?)
(cherry picked from commit 99988fb273
)
Conflicts:
debian/changelog
26 lines
548 B
Makefile
Executable File
26 lines
548 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
|
|
DESTDIR := $(CURDIR)/debian/rvthtool
|
|
|
|
%:
|
|
dh $@ --parallel -Bbuild
|
|
|
|
CMAKE_OPTIONS := \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DSPLIT_DEBUG=OFF \
|
|
-DENABLE_LTO=OFF \
|
|
-DQT_VERSION=5
|
|
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
|
CMAKE_OPTIONS += -DBUILD_TESTING=ON
|
|
endif
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- $(CMAKE_OPTIONS)
|
|
|
|
override_dh_auto_test:
|
|
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
|
CTEST_OUTPUT_ON_FAILURE=1 $(MAKE) -C build test
|
|
endif
|