-
Notifications
You must be signed in to change notification settings - Fork 20
/
CMakeLists.txt
54 lines (41 loc) · 1.33 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
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(nomacs-plugins)
# include macros needed
include("cmake/Utils.cmake")
# load paths from the user file if exists
if (EXISTS ${CMAKE_SOURCE_DIR}/CMakeUserPaths.cmake)
include(${CMAKE_SOURCE_DIR}/CMakeUserPaths.cmake)
endif()
NMC_POLICY()
OPTION (ENABLE_FAKE_MINIATURES "Compile FakeMiniatures plugin" ON)
OPTION (ENABLE_TRANSFORM "Compile Transform plugin" ON)
OPTION (ENABLE_PAINT "Compile Paint plugin" ON)
OPTION (ENABLE_PAGE "Compile Document Page Extraction plugin" ON)
OPTION (ENABLE_COMPOSITE "Compile Composite Image plugin" ON)
OPTION (ENABLE_SIMPLE "Compile SIMPLE PLUGIN" OFF)
NMC_PREPARE_PLUGIN()
NMC_FINDQT()
NMC_FIND_OPENCV("core" "imgproc")
set(BUILDING_MULTIPLE_PLUGINS true)
IF (ENABLE_FAKE_MINIATURES)
add_subdirectory(FakeMiniaturesPlugin)
ENDIF(ENABLE_FAKE_MINIATURES)
IF (ENABLE_TRANSFORM)
add_subdirectory(AffineTransformations)
ENDIF(ENABLE_TRANSFORM)
IF (ENABLE_PAINT)
add_subdirectory(PaintPlugin)
ENDIF(ENABLE_PAINT)
IF (ENABLE_PAGE)
add_subdirectory(PageExtractionPlugin)
ENDIF(ENABLE_PAGE)
IF (ENABLE_COMPOSITE)
add_subdirectory(CompositePlugin)
ENDIF(ENABLE_COMPOSITE)
IF (ENABLE_SIMPLE)
add_subdirectory(SIMPLE_PLUGIN)
ENDIF(ENABLE_SIMPLE)