forked from timothybrooks/hdr-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant abstract class in IO. Refactor CMakeLists.
- Loading branch information
Rasim
committed
Feb 8, 2020
1 parent
4cad926
commit ff27028
Showing
7 changed files
with
88 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,38 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(HDR_PLUS) | ||
|
||
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | ||
|
||
include("macro.cmake") | ||
set(CMAKE_CXX_STANDARD 11) | ||
|
||
# Define dependencies | ||
link_halide() | ||
link_libtiff() | ||
|
||
find_package(PNG REQUIRED) | ||
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/Burst.cpp) | ||
|
||
set(header_files | ||
src/InputSource.h | ||
src/Burst.cpp | ||
src/Burst.h) | ||
src/Burst.h | ||
src/dngwriter.h) | ||
|
||
include_directories(/usr/local/lib /usr/local/include ${HALIDE_DISTRIB_DIR}/include ${HALIDE_DISTRIB_DIR}/tools) | ||
link_directories(/usr/local/lib /usr/local/include) | ||
|
||
add_executable(stack_frames src/stack_frames.cpp ${src_files}) | ||
target_link_libraries(stack_frames Halide png ${LIBRAW_LIBRARY} ${TIFF_LIBRARIES}) | ||
|
||
add_executable(hdrplus ${src_files}) | ||
|
||
add_executable(hdrplus src/HDRPlus.cpp ${src_files}) | ||
target_link_libraries(hdrplus Halide png ${LIBRAW_LIBRARY}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters