forked from timothybrooks/hdr-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (26 loc) · 999 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
cmake_minimum_required(VERSION 3.10)
project(HDR_PLUS)
set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_CXX_FLAGS "-O3 -v -g -Wall") # Use -DCMAKE_BUILD_TYPE=Release/Debug instead
find_package(PNG REQUIRED)
set(HALIDE_ROOT_DIR "")
if(" ${HALIDE_ROOT_DIR}" STREQUAL " ")
message( FATAL_ERROR "Specify HALIDE_ROOT_DIR variable in the cmake file." )
endif()
find_library(LIBRAW_LIBRARY
NAMES raw raw_r
)
set(src_files
src/HDRPlus.cpp
src/align.cpp
src/finish.cpp
src/merge.cpp
src/util.cpp
src/InputSource.cpp
src/InputSource.h
src/Burst.cpp
src/Burst.h)
include_directories(/usr/local/lib /usr/local/include ${HALIDE_ROOT_DIR}/bin ${HALIDE_ROOT_DIR}/lib ${HALIDE_ROOT_DIR}/include ${HALIDE_ROOT_DIR}/tools)
link_directories(/usr/local/lib /usr/local/include ${HALIDE_ROOT_DIR}/bin ${HALIDE_ROOT_DIR}/lib ${HALIDE_ROOT_DIR}/include ${HALIDE_ROOT_DIR}/tools)
add_executable(hdrplus ${src_files})
target_link_libraries(hdrplus Halide png ${LIBRAW_LIBRARY})