Changeset View
Changeset View
Standalone View
Standalone View
examples/CMakeLists.txt
1 | find_package(Qt5Widgets REQUIRED) | 1 | find_package(Qt5Widgets REQUIRED) | ||
---|---|---|---|---|---|
2 | find_package(KF5WidgetsAddons) | 2 | find_package(KF5WidgetsAddons) | ||
3 | find_package(KF5GuiAddons) | 3 | find_package(KF5GuiAddons) | ||
4 | 4 | | |||
5 | remove_definitions( | 5 | remove_definitions( | ||
6 | -DQT_NO_KEYWORDS | 6 | -DQT_NO_KEYWORDS | ||
7 | -DQT_NO_SIGNALS_SLOTS_KEYWORDS | 7 | -DQT_NO_SIGNALS_SLOTS_KEYWORDS | ||
8 | -DQT_NO_CAST_FROM_ASCII | 8 | -DQT_NO_CAST_FROM_ASCII | ||
9 | ) | 9 | ) | ||
10 | 10 | | |||
11 | add_definitions(-DKREPORTEXAMPLE_DATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"") | 11 | add_definitions(-DKREPORTEXAMPLE_DATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"") | ||
12 | 12 | | |||
13 | set(kreportexample_SRCS main.cpp | 13 | set(kreportexample_SRCS main.cpp | ||
14 | window.cpp | 14 | window.cpp | ||
15 | DesignerWidget.cpp | 15 | DesignerWidget.cpp | ||
16 | KReportExampleData.cpp | 16 | KReportExampleDataSource.cpp | ||
17 | ) | 17 | ) | ||
18 | add_executable(kreportexample ${kreportexample_SRCS}) | 18 | add_executable(kreportexample ${kreportexample_SRCS}) | ||
19 | target_link_libraries(kreportexample KF5::ConfigGui KReport KReportUtilsPrivate) | 19 | target_link_libraries(kreportexample KF5::ConfigGui KReport KReportUtilsPrivate) |