forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qt-gui with commit history now in elektra
- Loading branch information
0003088
committed
Sep 3, 2014
1 parent
d3871e4
commit 8b2de7d
Showing
62 changed files
with
4,112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
project(qt-gui) | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
set(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") | ||
|
||
set( CMAKE_BUILD_TYPE Debug ) | ||
|
||
add_definitions(-Wall) | ||
|
||
find_package(Qt5 REQUIRED Quick Gui Core Qml Widgets Test) | ||
|
||
include_directories ( | ||
${CMAKE_SOURCE_DIR} | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
${Qt5Quick_INCLUDE_DIRS} | ||
${Qt5Gui_INCLUDE_DIRS} | ||
${Qt5Core_INCLUDE_DIRS} | ||
${Qt5Qml_INCLUDE_DIRS} | ||
${Qt5Widgets_INCLUDE_DIRS} | ||
${Qt5Test_INCLUDE_DIRS} | ||
/usr/include/elektra | ||
/usr/local/include/elektra | ||
) | ||
|
||
set(qt-gui_HDRS | ||
src/visitor.hpp | ||
src/printvisitor.hpp | ||
src/keysetvisitor.hpp | ||
src/newkeycommand.hpp | ||
src/editkeycommand.hpp | ||
src/deletekeycommand.hpp | ||
src/cutkeycommand.hpp | ||
src/copykeycommand.hpp | ||
) | ||
|
||
set(qt-gui_SRCS | ||
src/main.cpp | ||
src/treeviewmodel.cpp | ||
src/confignode.cpp | ||
src/printvisitor.cpp | ||
src/keysetvisitor.cpp | ||
modeltest/dynamictreemodel.cpp | ||
modeltest/modeltest.cpp | ||
src/undomanager.cpp | ||
src/newkeycommand.cpp | ||
src/deletekeycommand.cpp | ||
src/editkeycommand.cpp | ||
src/copykeycommand.cpp | ||
src/cutkeycommand.cpp | ||
) | ||
|
||
set(qt-gui_RSCS | ||
resources.qrc | ||
) | ||
|
||
qt5_add_resources(RSCS ${qt-gui_RSCS}) | ||
|
||
add_executable(qt-gui ${qt-gui_SRCS} ${UIS} ${RSCS} ${TRS}) | ||
|
||
qt5_use_modules(qt-gui Quick Gui Core Qml Widgets) | ||
|
||
target_link_libraries(qt-gui ${Qt5Quick_LIBRARIES} ${Qt5Gui_LIBRARIES} ${Qt5Core_LIBRARIES} ${Qt5Qml_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5Test_LIBRARIES} elektra) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
android-no-sdk { | ||
target.path = /data/user/qt | ||
export(target.path) | ||
INSTALLS += target | ||
} else:android { | ||
x86 { | ||
target.path = /libs/x86 | ||
} else: armeabi-v7a { | ||
target.path = /libs/armeabi-v7a | ||
} else { | ||
target.path = /libs/armeabi | ||
} | ||
export(target.path) | ||
INSTALLS += target | ||
} else:unix { | ||
isEmpty(target.path) { | ||
qnx { | ||
target.path = /tmp/$${TARGET}/bin | ||
} else { | ||
target.path = /opt/$${TARGET}/bin | ||
} | ||
export(target.path) | ||
} | ||
INSTALLS += target | ||
} | ||
|
||
export(INSTALLS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<RCC> | ||
<qresource prefix="/"> | ||
<file>qml/i18n/lang_de_DE.qm</file> | ||
</qresource> | ||
</RCC> |
Oops, something went wrong.