-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
30 lines (26 loc) · 1.03 KB
/
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
cmake_minimum_required(VERSION 2.8)
project(image-restoration)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
add_definitions("-Wall")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
OPTION(BK "Use the Boykov-Kolmogorov algorithm" OFF)
IF(BK)
ADD_DEFINITIONS(-DBOYKOV_KOLMOGOROV)
ELSE(BK)
ADD_DEFINITIONS(-DPUSH_RELABEL)
ENDIF(BK)
add_executable(avg avg.cpp)
add_executable(pertest pertest.cpp)
add_executable(imgdiff imgdiff.cpp)
add_executable(methodnoise methodnoise.cpp)
add_executable(image-restoration main.cpp graph.cpp selectionrule.cpp image.cpp anisotropy.cpp)
add_executable(colorwheel colorwheel.cpp)
add_executable(flowtest flowtest.cpp graph.cpp selectionrule.cpp)
target_link_libraries(avg ${OpenCV_LIBS})
target_link_libraries(pertest ${OpenCV_LIBS})
target_link_libraries(imgdiff ${OpenCV_LIBS})
target_link_libraries(methodnoise ${OpenCV_LIBS})
target_link_libraries(image-restoration ${OpenCV_LIBS})
target_link_libraries(colorwheel ${OpenCV_LIBS})
target_link_libraries(flowtest ${OpenCV_LIBS})