From 1cb279e450b0f22bfa3199435432ef6ef2af3063 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Tue, 1 Jan 2019 15:48:11 +0800 Subject: [PATCH] test for cmake --- .travis.yml | 2 +- build/test/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 15000a9..8a3baf8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ matrix: before_install: - eval "${MATRIX_EVAL}" - - ls -l /usr/include/x86_64-linux-gnu/qt5 + - ls -l /usr/include/qt5 - qmake -v script: diff --git a/build/test/CMakeLists.txt b/build/test/CMakeLists.txt index d14df61..7b64103 100644 --- a/build/test/CMakeLists.txt +++ b/build/test/CMakeLists.txt @@ -2,6 +2,7 @@ project(test) set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) +set(CMAKE_PREFIX_PATH /usr/include/qt5) find_package(Qt5 COMPONENTS Core Test REQUIRED)