1234567891011121314151617181920212223242526 |
- cmake_minimum_required(VERSION 3.16)
- project(postprocessd C CXX)
- set(CMAKE_C_STANDARD 11)
- include(FindPkgConfig)
- find_package(PkgConfig REQUIRED)
- pkg_check_modules(RAW REQUIRED libraw)
- pkg_check_modules(DNG REQUIRED libdng)
- pkg_check_modules(JPEG REQUIRED libjpeg)
- pkg_check_modules(EXIF REQUIRED libexif)
- pkg_check_modules(CV REQUIRED opencv4)
- pkg_check_modules(LENSFUN REQUIRED lensfun)
- add_compile_options(-Wall -Wextra -pedantic)
- add_executable(postprocessd main.c postprocess.c postprocess.h util.c util.h stacker.cpp stacker.h stackercpp.cpp stackercpp.h)
- target_link_libraries(postprocessd ${RAW_LIBRARIES} ${DNG_LIBRARIES} ${LENSFUN_LIBRARIES} ${JPEG_LIBRARIES} ${EXIF_LIBRARIES} ${CV_LIBRARIES})
- target_include_directories(postprocessd PUBLIC ${RAW_INCLUDE_DIRS} ${DNG_INCLUDE_DIRS} ${LENSFUN_INCLUDE_DIRS} ${JPEG_INCUDE_DIRS} ${EXIF_INCUDE_DIRS} ${CV_INCLUDE_DIRS})
- target_compile_options(postprocessd PUBLIC ${RAW_CFLAGS_OTHER} ${DNG_CFLAGS_OTHER} ${LENSFUN_CFLAGS_OTHER} ${JPEG_CFLAGS_OTHER} ${EXIF_CFLAGS_OTHER} ${CV_CFLAGS_OTHER})
- add_executable(postprocess-single single.c postprocess.c postprocess.h util.c util.h stacker.cpp stacker.h stackercpp.cpp stackercpp.h)
- target_link_libraries(postprocess-single ${RAW_LIBRARIES} ${DNG_LIBRARIES} ${LENSFUN_LIBRARIES} ${JPEG_LIBRARIES} ${EXIF_LIBRARIES} ${CV_LIBRARIES})
- target_include_directories(postprocess-single PUBLIC ${RAW_INCLUDE_DIRS} ${DNG_INCLUDE_DIRS} ${LENSFUN_INCLUDE_DIRS} ${JPEG_INCUDE_DIRS} ${EXIF_INCUDE_DIRS} ${CV_INCLUDE_DIRS})
- target_compile_options(postprocess-single PUBLIC ${RAW_CFLAGS_OTHER} ${DNG_CFLAGS_OTHER} ${LENSFUN_CFLAGS_OTHER} ${JPEG_CFLAGS_OTHER} ${EXIF_CFLAGS_OTHER} ${CV_CFLAGS_OTHER})
|