Skip to content

Commit e119f5b

Browse files
committed
missing cmake opencv parameters
1 parent 7f8407b commit e119f5b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ if(NOT TIFF_FOUND)
5656
add_library(TIFF::TIFF ALIAS tiff)
5757
endif()
5858

59+
find_package(OpenCV REQUIRED)
60+
#message(STATUS ${OpenCV_INCLUDE_DIRS})
5961

6062
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/RELIGHT_VERSION")
6163
# version is read from RELIGHT_VERSION file

align/CMakeLists.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ SET(SOURCES
2020
imagealignment.cpp
2121
)
2222

23-
find_package(OpenCV REQUIRED)
24-
message(STATUS ${OpenCV_LIBS})
23+
24+
2525

2626
add_executable(align ${HEADERS} ${SOURCES})
2727
target_include_directories(
2828
align PUBLIC
2929
${CMAKE_CURRENT_SOURCE_DIR}
30-
${JPEG_INCLUDE_DIR})
30+
${JPEG_INCLUDE_DIR}
31+
${OpenCV_INCLUDE_DIRS}
32+
)
3133

3234
target_link_libraries(
3335
align PUBLIC

relightlab/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ target_include_directories(
177177
${JPEG_INCLUDE_DIR}
178178
TIFF::TIFF
179179
${EIGEN3_INCLUDE_DIR}
180+
${OpenCV_INCLUDE_DIRS}
180181
../external
181182
)
182183

0 commit comments

Comments
 (0)