mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
add build file for testlocales
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
565b91fee9
commit
c479bafb32
3 changed files with 29 additions and 5 deletions
28
util/local_database/testlocales/CMakeLists.txt
Normal file
28
util/local_database/testlocales/CMakeLists.txt
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
cmake_minimum_required(VERSION 2.8.12.2 FATAL_ERROR)
|
||||||
|
|
||||||
|
project(testlocales CXX)
|
||||||
|
|
||||||
|
include(FeatureSummary)
|
||||||
|
|
||||||
|
set(CMAKE_AUTOMOC TRUE)
|
||||||
|
|
||||||
|
find_package(Katie REQUIRED)
|
||||||
|
|
||||||
|
add_definitions(${KATIE_DEFINITIONS})
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${KATIE_INCLUDES}
|
||||||
|
)
|
||||||
|
|
||||||
|
set(testlocales_SOURCES
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/localemodel.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/localewidget.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
add_executable(testlocales ${testlocales_SOURCES})
|
||||||
|
target_link_libraries(testlocales ${KATIE_GUI_LIBRARIES})
|
||||||
|
|
||||||
|
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
|
@ -42,9 +42,9 @@
|
||||||
#define LOCALEWIDGET_H
|
#define LOCALEWIDGET_H
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
#include <QTableView>
|
||||||
|
|
||||||
class LocaleModel;
|
class LocaleModel;
|
||||||
class QTableView;
|
|
||||||
|
|
||||||
class LocaleWidget : public QWidget
|
class LocaleWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
TARGET = testlocales
|
|
||||||
CONFIG += debug
|
|
||||||
SOURCES += localemodel.cpp localewidget.cpp main.cpp
|
|
||||||
HEADERS += localemodel.h localewidget.h
|
|
Loading…
Add table
Reference in a new issue