-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
25 lines (17 loc) · 840 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cmake_minimum_required(VERSION 3.1)
find_package(ECM 5.19.0 NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(KDEInstallDirs)
find_package(Qt5Gui REQUIRED)
set(CMAKE_AUTOMOC ON)
include_directories(/usr/include/FLIF)
add_library(flif MODULE src/FlifPlugin.cpp)
target_link_libraries(flif Qt5::Gui -lflif)
# Turn on warnings
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
# C++14
set_property(TARGET flif PROPERTY CXX_STANDARD 14)
set_property(TARGET flif PROPERTY CXX_STANDARD_REQUIRED ON)
install(TARGETS flif DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES configuration/qimageioplugins/x-flif.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
install(FILES configuration/qimageioplugins/x-flif.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)