1 find_package(PkgConfig)
3 pkg_check_modules (GLIB2 REQUIRED glib-2.0>=2.16)
4 pkg_check_modules (GTHREAD REQUIRED gthread-2.0>=2.16)
5 pkg_check_modules (GOBJECT REQUIRED gobject-2.0>=2.16)
6 pkg_check_modules (GLIBMM REQUIRED glibmm-2.4>=2.16)
7 pkg_check_modules (SIGC REQUIRED sigc++-2.0)
10 SET (EXTRA_LIBDIR "${CMAKE_CURRENT_SOURCE_DIR}/../lib; ${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_win")
11 SET (EXTRA_INCDIR "${CMAKE_CURRENT_SOURCE_DIR}/../winclude; ${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_win")
12 SET (EXTRA_LIB "ws2_32 ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libiptcdata.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libjpeg.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libpng.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libtiff.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libz.a")
14 pkg_check_modules (IPTCDATA REQUIRED libiptcdata)
15 pkg_check_modules (LCMS REQUIRED lcms)
18 include_directories (${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../rtexif ${EXTRA_INCDIR} ${GTHREAD_INCLUDE_DIRS} ${GOBJECT_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS} ${GLIBMM_INCLUDE_DIRS} ${IPTCDATA_INCLUDE_DIRS} ${LCMS_INCLUDE_DIRS})
19 link_directories (${CMAKE_CURRENT_SOURCE_DIR}/../rtexif ${EXTRA_LIBDIR} ${GTHREAD_LIBRARY_DIRS} ${GOBJECT_LIBRARY_DIRS} ${GLIB2_LIBRARY_DIRS} ${GLIBMM_LIBRARY_DIRS} ${IPTCDATA_LIBRARY_DIRS} ${LCMS_LIBRARY_DIRS})
21 add_library (rtengine STATIC colortemp.cc curves.cc dcraw.cc gauss.cc iccstore.cc
22 image8.cc image16.cc imagedata.cc imageio.cc improcfun.cc init.cc dcrop.cc
23 loadinitial.cc procparams.cc rawimagesource.cc shmap.cc simpleprocess.cc refreshmap.cc
24 stdimagesource.cc myfile.cc iccjpeg.c hlmultipliers.cc improccoordinator.cc
25 helpers.cc processingjob.cc rtthumbnail.cc utils.cc bilateral2.cc)
27 set_target_properties (rtengine PROPERTIES COMPILE_FLAGS "-O3 -ffast-math -fexpensive-optimizations -funroll-loops -msse")
29 #add_executable (rtcmd rtetest.cc)
30 #add_executable (ppmap pparamsmap.cc)
32 target_link_libraries (rtengine rtexif ${EXTRA_LIB} ${GOBJECT_LIBRARIES} ${GTHREAD_LIBRARIES} ${GLIB2_LIBRARIES} ${GLIBMM_LIBRARIES} ${LCMS_LIBRARIES} ${IPTCDATA_LIBRARIES})
35 ADD_DEFINITIONS (-DRAWZOR_SUPPORT)
36 include_directories (${RAWZOR_INCLUDE_DIR})
37 target_link_libraries (rtengine ${RAWZOR_LIBRARIES})
39 #target_link_libraries (rtcmd rtengine)
40 #target_link_libraries (ppmap rtengine)