-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
71 lines (55 loc) · 1.68 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
if(CMAKE_HOST_WIN32) # ubuntu 14.04 has cmake 2.8.12
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
else()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
endif()
PROJECT(imageformats)
# # include macros needed
# include("cmake/Utils.cmake")
OPTION (ENABLE_PSD "Enable PSD Plugin" ON)
OPTION (ENABLE_PCX "Enable PCX Plugin" ON)
OPTION (ENABLE_HEIF "Enable HEIF Plugin" ON)
# not supported yet
OPTION (ENABLE_FLIF "Enable FLIF Plugin" OFF)
# NMC_PREPARE_PLUGIN()
# NMC_FINDQT()
# NMC_FIND_OPENCV("core" "imgproc")
# set(BUILDING_MULTIPLE_PLUGINS true)
IF (ENABLE_PSD)
add_subdirectory(libqpsd)
ENDIF(ENABLE_PSD)
IF (ENABLE_PCX)
add_subdirectory(libqpcx)
ENDIF(ENABLE_PCX)
IF (ENABLE_HEIF)
add_subdirectory(qt-heif-image-plugin)
ENDIF(ENABLE_HEIF)
IF (ENABLE_FLIF)
add_subdirectory(qt-flif-plugin)
ENDIF(ENABLE_FLIF)
# status
MESSAGE(STATUS "")
MESSAGE(STATUS "----------------------------------------------------------------------------------")
MESSAGE(STATUS " ${PROJECT_NAME} for nomacs <https://nomacs.org>")
MESSAGE(STATUS "")
IF(ENABLE_PSD)
MESSAGE(STATUS " with PSD .................. YES")
ELSE()
MESSAGE(STATUS " with PSD .................. NO")
ENDIF()
IF(ENABLE_PCX)
MESSAGE(STATUS " with PCX .................. YES")
ELSE()
MESSAGE(STATUS " with PCX .................. NO")
ENDIF()
IF(ENABLE_HEIF)
MESSAGE(STATUS " with HEIF ................. YES")
ELSE()
MESSAGE(STATUS " with HEIF ................. NO")
ENDIF()
# IF(ENABLE_FLIF)
# MESSAGE(STATUS " with FLIF ................. YES")
# ELSE()
# MESSAGE(STATUS " with FLIF ................. NO")
# ENDIF()
MESSAGE(STATUS "----------------------------------------------------------------------------------")