-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
36 lines (30 loc) · 990 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
26
27
28
29
30
31
32
33
34
35
36
PROJECT( dngconvert )
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
# The version number.
SET(DNGCONVERT_VERSION_MAJOR 0)
SET(DNGCONVERT_VERSION_MINOR 1)
SET(DNGCONVERT_VERSION_PATCH 0)
# configure a header file to pass some of the CMake settings
# to the source code
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/config.h.cmake"
"${PROJECT_BINARY_DIR}/config.h"
)
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
IF( MINGW OR UNIX )
ADD_DEFINITIONS(-Wall
-Wcast-align
-Wpointer-arith
-Wformat-security
-Wmissing-format-attribute
-Woverloaded-virtual
-W
)
ENDIF( MINGW OR UNIX )
ADD_SUBDIRECTORY( cmake )
ADD_SUBDIRECTORY( libdng )
ADD_SUBDIRECTORY( dngconvert )
ADD_SUBDIRECTORY( dngcompare )
ADD_SUBDIRECTORY( dngvalidate )
ADD_SUBDIRECTORY( dnganalyze )