CMakeLists.txt 1.5 KB
Newer Older
1
add_definitions(-DTRANSLATION_DOMAIN=\"oxygen_style_demo\")
2
3

include_directories(${CMAKE_BINARY_DIR}/liboxygen)
4
5

########### next target ###############
6
set(oxygen_demo_SOURCES
7
    oxygenbenchmarkwidget.cpp
8
9
    oxygenbuttondemowidget.cpp
    oxygendemodialog.cpp
10
    oxygendemowidget.cpp
11
    oxygenframedemowidget.cpp
12
    oxygeninputdemowidget.cpp
13
    oxygenlistdemowidget.cpp
14
    oxygenmdidemowidget.cpp
15
    oxygensimulator.cpp
16
    oxygensliderdemowidget.cpp
17
    oxygentabdemowidget.cpp
18
    oxygentabwidget.cpp
19
20
    main.cpp)

21
set(oxygen_demo_FORMS
22
    ui/oxygenbenchmarkwidget.ui
23
    ui/oxygenbuttondemowidget.ui
24
    ui/oxygenframedemowidget.ui
25
26
    ui/oxygeninputdemowidget.ui
    ui/oxygenlistdemowidget.ui
27
28
    ui/oxygenmdidemowidget.ui
    ui/oxygensliderdemowidget.ui
29
30
31
    ui/oxygentabdemowidget.ui
)

32
33
find_package(KF5ConfigWidgets CONFIG)
if(KF5ConfigWidgets_FOUND)
34
    set(oxygen_demo_SOURCES ${oxygen_demo_SOURCES} oxygenschemechooser.cpp oxygenstylechooser.cpp)
35
    add_definitions(-DHAVE_SCHEME_CHOOSER)
36
endif()
37

38
ki18n_wrap_ui(oxygen_demo_FORMS_HEADERS ${oxygen_demo_FORMS})
39

40
41
42
43
add_executable(oxygen-demo5
    ${oxygen_demo_SOURCES}
    ${oxygen_demo_FORMS_HEADERS}
)
44

45
target_link_libraries(oxygen-demo5 Qt::Core Qt::Gui Qt::Widgets)
46
47
target_link_libraries(oxygen-demo5 KF5::Completion KF5::ConfigGui KF5::WidgetsAddons KF5::I18n)
if(KF5ConfigWidgets_FOUND)
48
    target_link_libraries(oxygen-demo5 KF5::ConfigWidgets)
49
endif()
50
51

########### install files ###############
52
install(TARGETS oxygen-demo5 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})