From: Michal MalĂ˝ Date: Wed, 29 Jul 2015 17:52:39 +0000 (+0200) Subject: Move build system to CMake X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=c618817456d22309cfdcf36bcae761c64d433573;p=FFBChecker.git Move build system to CMake --- diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a452a5c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,50 @@ +cmake_minimum_required(VERSION 2.8.13) + +project(FFBChecker) + +add_definitions("-std=c++11 -Wall -Wextra") + +if (CMAKE_BUILD_TYPE EQUAL "DEBUG") + add_definitions("-ggdb -g3") +endif() + +find_package(Qt5Widgets) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTOUIC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(FFBChecker_SRCS + conditioneffectsettings.cpp + constanteffectsettings.cpp + deviceprober.cpp + effectsettings.cpp + envelopesettings.cpp + ffbconditioneffect.cpp + ffbconditioneffectparameters.cpp + ffbconstanteffect.cpp + ffbconstanteffectparameters.cpp + ffbdevice.cpp + ffbeffect.cpp + ffbeffectfactory.cpp + ffbeffectparameters.cpp + ffbenvelopeparameters.cpp + ffbnulleffect.cpp + ffbperiodiceffect.cpp + ffbperiodiceffectparameters.cpp + ffbrampeffect.cpp + ffbrampeffectparameters.cpp + ffbrumbleeffect.cpp + ffbrumbleeffectparameters.cpp + globalsettings.cpp + main.cpp + mainwindow.cpp + periodiceffectsettings.cpp + rampeffectsettings.cpp + rumbleeffectsettings.cpp) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR}) + +add_executable(FFBChecker ${FFBChecker_SRCS}) +target_link_libraries(FFBChecker Qt5::Widgets) diff --git a/FFBChecker.pro b/FFBChecker.pro deleted file mode 100644 index 3fbff7a..0000000 --- a/FFBChecker.pro +++ /dev/null @@ -1,84 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-03-28T12:34:18 -# -#------------------------------------------------- - -QT += core gui - -greaterThan(QT_MAJOR_VERSION, 4): QT += widgets - -TARGET = FFBChecker -TEMPLATE = app - - -SOURCES += main.cpp\ - mainwindow.cpp \ - deviceprober.cpp \ - ffbdevice.cpp \ - ffbeffect.cpp \ - ffbeffectparameters.cpp \ - ffbconstanteffectparameters.cpp \ - effectsettings.cpp \ - constanteffectsettings.cpp \ - envelopesettings.cpp \ - periodiceffectsettings.cpp \ - ffbconstanteffect.cpp \ - ffbeffectfactory.cpp \ - ffbenvelopeparameters.cpp \ - ffbperiodiceffectparameters.cpp \ - ffbperiodiceffect.cpp \ - ffbnulleffect.cpp \ - conditioneffectsettings.cpp \ - ffbconditioneffectparameters.cpp \ - ffbconditioneffect.cpp \ - rampeffectsettings.cpp \ - ffbrampeffectparameters.cpp \ - ffbrampeffect.cpp \ - globalsettings.cpp \ - rumbleeffectsettings.cpp \ - ffbrumbleeffectparameters.cpp \ - ffbrumbleeffect.cpp - -HEADERS += mainwindow.h \ - deviceprober.h \ - ffbdevice.h \ - helpers.h \ - ffbeffect.h \ - globals.h \ - ffbeffectparameters.h \ - ffbconstanteffectparameters.h \ - effectsettings.h \ - constanteffectsettings.h \ - envelopesettings.h \ - periodiceffectsettings.h \ - ffbconstanteffect.h \ - ffbeffectfactory.h \ - ffbenvelopeparameters.h \ - ffbperiodiceffectparameters.h \ - ffbperiodiceffect.h \ - ffbnulleffect.h \ - conditioneffectsettings.h \ - ffbconditioneffectparameters.h \ - ffbconditioneffect.h \ - rampeffectsettings.h \ - ffbrampeffectparameters.h \ - ffbrampeffect.h \ - globalsettings.h \ - rumbleeffectsettings.h \ - ffbrumbleeffectparameters.h \ - ffbrumbleeffect.h - -FORMS += mainwindow.ui \ - constanteffectsettings.ui \ - envelopesettings.ui \ - periodiceffectsettings.ui \ - conditioneffectsettings.ui \ - rampeffectsettings.ui \ - rumbleeffectsettings.ui - -QMAKE_CXXFLAGS += -std=c++11 -Wall -QMAKE_CXXFLAGS_DEBUG += -ggdb3 - -OTHER_FILES += \ - TODO.txt