forked from darktable-org/darktable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (24 loc) · 843 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
cmake_minimum_required(VERSION 2.6)
include_directories("${CMAKE_CURRENT_BINARY_DIR}/../" "${CMAKE_CURRENT_SOURCE_DIR}")
set(MODULES darkroom lighttable slideshow)
add_library(darkroom MODULE "darkroom.c")
add_library(lighttable MODULE "lighttable.c")
add_library(slideshow MODULE "slideshow.c")
if(USE_GEO)
add_library(map MODULE "map.c")
set(MODULES ${MODULES} map)
endif(USE_GEO)
if(GPHOTO2_FOUND)
add_library(tethering MODULE "tethering.c")
set(MODULES ${MODULES} tethering)
endif(GPHOTO2_FOUND)
if(CUPS_FOUND)
add_library(print MODULE "print.c")
set(MODULES ${MODULES} print)
endif(CUPS_FOUND)
foreach(module ${MODULES})
target_link_libraries(${module} ${LIBS})
endforeach(module)
foreach(module ${MODULES})
install(TARGETS ${module} DESTINATION ${LIB_INSTALL}/darktable/views)
endforeach(module)