From 2ada12e75be9945fde8760ee5ad8373d61feda79 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Mon, 12 Oct 2015 21:58:57 +0200 Subject: [PATCH] Allow build on pre -3.0 CMake --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f07891e..c70ad22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.13) +cmake_minimum_required(VERSION 2.8.12) project(FFBChecker) @@ -33,7 +33,6 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Windows") endif() set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTOUIC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(FFBChecker_SRCS @@ -93,6 +92,7 @@ set(FFBChecker_UIS periodiceffectsettings.ui rampeffectsettings.ui rumbleeffectsettings.ui) +qt5_wrap_ui(FFBChecker_UIS_WRAPPED ${FFBChecker_UIS}) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) if (SDL2_FOUND) @@ -105,7 +105,7 @@ endif() if (PLATFORM_LINUX) - add_executable(FFBChecker ${FFBChecker_SRCS}) + add_executable(FFBChecker ${FFBChecker_SRCS} ${FFBChecker_UIS_WRAPPED}) target_link_libraries(FFBChecker Qt5::Widgets) elseif (PLATFORM_WIN32) add_executable(FFBChecker WIN32 ${FFBChecker_SRCS}) -- 2.43.5