~ahayzen/ubuntu-ui-extras/printer-components-fit-bitwise-or-failing

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Extras/Printers/CMakeLists.txt

  • Committer: Andrew Hayzen
  • Date: 2017-02-21 16:55:36 UTC
  • Revision ID: ahayzen@gmail.com-20170221165536-o03ol7hsasbryw30
* Remove remaining fixme's

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
project(UbuntuComponentsExtrasPrintersQml)
2
2
 
 
3
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra")
 
4
 
3
5
add_definitions(-DUBUNTUCOMPONENTSEXTRASPRINTERS_LIBRARY)
4
6
 
5
 
# FIXME: had to add this
6
7
include(FindCups)
7
8
 
8
9
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CUPS_INCLUDE_DIR})
9
10
 
10
 
# FIXME: had to add this
11
 
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra")
12
 
 
13
11
find_package(Qt5Gui REQUIRED)
14
12
find_package(Qt5PrintSupport REQUIRED)
15
13
find_package(Qt5Qml REQUIRED)
16
14
find_package(Qt5DBus REQUIRED)
17
15
find_package(Qt5Concurrent REQUIRED)
18
16
 
19
 
# FIXME: had to add this
20
17
if(NOT CUPS_FOUND)
21
18
message(FATAL_ERROR "Could not find cups.")
22
19
endif()
61
58
    ${CUPS_LIBRARIES}
62
59
)
63
60
 
64
 
# FIXME: had to add this
65
61
find_package(QmlPlugins)
66
62
 
67
 
macro(add_usc_plugin PLUGIN VERSION PATH)
 
63
macro(add_plugin PLUGIN VERSION PATH)
68
64
    export_qmlfiles(${PLUGIN} ${PATH} DESTINATION ${QT_IMPORTS_DIR} ${ARGN})
69
65
    export_qmlplugin(${PLUGIN} ${VERSION} ${PATH} DESTINATION ${QT_IMPORTS_DIR} ${ARGN})
70
66
endmacro()
71
67
 
72
 
add_usc_plugin(Ubuntu.Components.Extras.Printers 0.1 Ubuntu/Components/Extras/Printers TARGETS UbuntuComponentsExtrasPrintersQml)
 
68
add_plugin(Ubuntu.Components.Extras.Printers 0.1 Ubuntu/Components/Extras/Printers TARGETS UbuntuComponentsExtrasPrintersQml)