forked from kisakata/rawtoaces
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (43 loc) · 1.45 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
cmake_minimum_required(VERSION 2.8)
include_directories( "${CMAKE_CURRENT_SOURCE_DIR}" )
if ( IlmBase_FOUND )
add_definitions( -DHAVE_IlmBase=1 )
include_directories( ${IlmBase_INCLUDE_DIRS} )
endif()
if ( libraw_FOUND )
add_definitions (-DHAVE_LIBRAW=1 )
include_directories( ${libraw_INCLUDE_DIRS} )
link_directories( ${libraw_LIBRARY_DIRS} )
endif()
if ( Ceres_FOUND )
add_definitions( -DHAVE_Ceres=1 )
include_directories( ${CERES_INCLUDE_DIRS} )
link_directories( ${CERES_LIBRARY_DIRS} )
endif()
if ( AcesContainer_FOUND )
add_definitions( -DHAVE_ACESFILE=1 )
include_directories( ${AcesContainer_INCLUDE_DIRS} )
link_directories( ${AcesContainer_LIBRARY_DIRS} )
endif()
add_library( ${RAWTOACESLIB} SHARED
acesrender.cpp
)
target_link_libraries( ${RAWTOACESLIB}
${RAWTOACESIDTLIB} )
if ( IlmBase_FOUND )
target_link_libraries( ${RAWTOACESLIB} ${IlmBase_LIBRARIES} )
target_link_libraries( ${RAWTOACESLIB} ${IlmBase_LDFLAGS_OTHER} )
endif()
if ( libraw_FOUND )
target_link_libraries( ${RAWTOACESLIB} ${libraw_LIBRARIES} )
target_link_libraries( ${RAWTOACESLIB} ${libraw_LDFLAGS_OTHER} )
endif()
if ( AcesContainer_FOUND )
target_link_libraries( ${RAWTOACESLIB} ${AcesContainer_LIBRARIES} )
target_link_libraries( ${RAWTOACESLIB} ${AcesContainer_LDFLAGS_OTHER} )
endif()
install(FILES
acesrender.h
DESTINATION include/rawtoaces/include
)
install( TARGETS ${RAWTOACESLIB} DESTINATION lib )