Skip to content

Commit

Permalink
cmake: fixed dl lib dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rxdu committed Nov 2, 2024
1 parent 6507aff commit 59ba6fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ if(QUICKVIZ_DEV_MODE)
message(STATUS "quickviz development mode enabled")
endif()

if(ENABLE_AUTO_LAYOUT)
message(STATUS "Auto layout enabled")
endif()

# Build tests
if (((NOT BUILD_AS_MODULE) AND BUILD_TESTING) OR QUICKVIZ_DEV_MODE)
set(BUILD_TESTING ON)
Expand Down
3 changes: 2 additions & 1 deletion src/imview/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
find_package(PkgConfig REQUIRED)
pkg_check_modules(Cairo REQUIRED IMPORTED_TARGET cairo)
pkg_check_modules(Fontconfig REQUIRED IMPORTED_TARGET fontconfig)

find_package(OpenGL REQUIRED)
find_package(OpenCV REQUIRED)

if (ENABLE_AUTO_LAYOUT)
Expand Down Expand Up @@ -43,6 +43,7 @@ add_library(imview
)
target_link_libraries(imview PUBLIC imcore
PkgConfig::Cairo PkgConfig::Fontconfig
OpenGL::OpenGL ${CMAKE_DL_LIBS}
${AUTO_LAYOUT_LIBS} ${OpenCV_LIBS})
if (ENABLE_AUTO_LAYOUT)
target_compile_definitions(imview PUBLIC ENABLE_AUTO_LAYOUT)
Expand Down

0 comments on commit 59ba6fc

Please sign in to comment.