plasma-framework/shell/CMakeLists.txt

56 lines
1.5 KiB
CMake
Raw Normal View History

project(testplasma2)
# Tell CMake to run moc when necessary:
set(CMAKE_AUTOMOC ON)
# As moc files are generated in the binary dir, tell CMake
# to always look for includes there:
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
find_path(KDE_MODULES_DIR NAMES KDE4Macros.cmake PATH_SUFFIXES share/cmake/modules)
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
find_package(Qt5Transitional REQUIRED Core)
find_package(Qt5Qml REQUIRED)
find_package(Qt5Quick REQUIRED)
# The Qt5Widgets_INCLUDES also includes the include directories for
# dependencies QtCore and QtGui
include_directories(${Qt5Widgets_DEFINITIONS} ${Qt5Quick_DEFINITIONS} ${QT_INCLUDES} ${KDE4_INCLUDES})
# We need add -DQT_WIDGETS_LIB when using QtWidgets in Qt 5.
add_definitions(${Qt5Widgets_DEFINITIONS} ${Qt5Quick_DEFINITIONS} ${Qt5Qml_DEFINITIONS})
# Executables fail to build with Qt 5 in the default configuration
# without -fPIE. We add that here.
set(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
2013-01-29 19:29:16 +01:00
add_executable(testplasma2
main.cpp
desktopcorona.cpp
2013-01-29 20:45:44 +01:00
view.cpp
2013-01-29 19:29:16 +01:00
)
# The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
target_link_libraries(testplasma2
#${Qt5Widgets_LIBRARIES}
${Qt5Quick_LIBRARIES}
${Qt5Qml_LIBRARIES}
${kcoreaddons}
2013-02-06 11:15:27 +01:00
${KDE4_KDEUI_LIBS}
${KDE4_KDECORE_LIBS}
plasma
)
2013-01-31 11:36:37 +01:00
2013-02-01 11:50:29 +01:00
install(TARGETS testplasma2 ${INSTALL_TARGETS_DEFAULT_ARGS})
add_subdirectory(qmlpackages)
2013-02-04 16:48:37 +01:00
installPackage(testcontainment org.kde.testcontainment)
installPackage(testapplet org.kde.testapplet)