Commit 2801a205 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr

Create executable.

parent ba408812
Andreas Cord-Landwehr <cordlandwehr@gmail.com>
\ No newline at end of file
# ArtiKulate CMakeLists.txt file
#
project(artikulate)
find_package(KDE4 4.9.0 REQUIRED)
include(KDE4Defaults)
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${QT4_INCLUDES})
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
# subdirectories to build
#add_subdirectory(data)
#add_subdirectory(doc)
add_subdirectory(src)
#add_subdirectory(sounds)
#add_subdirectory(images)
#add_subdirectory(icons)
# files to install in the artikulate project root directory
install( PROGRAMS artikulate.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
macro_display_feature_log()
# KDE Config File
[Desktop Entry]
Type=Application
Exec=artikulate -caption "%c" %i
Icon=artikulate
X-DocPath=artikulate/index.html
GenericName=ArtiKulate Prononciation Trainer
Terminal=false
Name=ArtiKulate
Categories=Qt;KDE;Education;X-KDE-Edu-Misc;
include(MacroLogFeature)
find_package(KDeclarative REQUIRED)
# set include directories
include_directories(
${QT_INCLUDE}
${KDE4_INCLUDES}
${CMAKE_CURRENT_BINARY_DIR}
)
# set the source code files from which ArtiKulate is compiled
set(artikulate_SRCS
main.cpp
)
kde4_add_executable(artikulate ${artikulate_SRCS})
target_link_libraries( artikulate
${KDECLARATIVE_LIBRARIES}
${KDE4_PLASMA_LIBS}
${KDE4_KIO_LIBS}
${KDE4_KCMUTILS_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTOPENGL_LIBRARY}
${QT_QTSCRIPT_LIBRARY}
${QT_QTDECLARATIVE_LIBRARY}
${QT_QTXMLPATTERNS_LIBRARY}
${QT_QTSQL_LIBRARY})
install(TARGETS artikulate ${INSTALL_TARGETS_DEFAULT_ARGS})
/*
* Copyright 2013 Andreas Cord-Landwehr <cordlandwehr@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License or (at your option) version 3 or any later version
* accepted by the membership of KDE e.V. (or its successor approved
* by the membership of KDE e.V.), which shall act as a proxy
* defined in Section 14 of version 3 of the license.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <KApplication>
#include <KAboutData>
#include <KCmdLineArgs>
#include <KLocale>
#include <KDebug>
static const char description[] =
I18N_NOOP("Learn and practice prononciation.");
static const char version[] = "0.0.1";
int main(int argc, char **argv)
{
KAboutData about("artikulate", 0,
ki18n("ArtiKulate Prononciation Trainer"),
version,
ki18n(description),
KAboutData::License_GPL,
ki18n("Copyright (C) 2013 by Andreas Cord-Landwehr")
);
about.addAuthor(ki18n("Andreas Cord-Landwehr"), ki18n("Original Author"), "cordlandwehr@gmail.com");
KCmdLineArgs::init(argc, argv, &about);
KApplication::setGraphicsSystem("raster");
KApplication app;
return app.exec();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment