Skip to content

Commit

Permalink
Modify the logic for finding dip lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Guan-schoolmate committed Oct 18, 2023
1 parent 4b7a2ab commit 1cc211b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ include(AddLLVM)
include(AddMLIR)
include(HandleLLVMOptions)

#-------------------------------------------------------------------------------
# Dip lib configuration
#-------------------------------------------------------------------------------

find_package(JPEG REQUIRED)
find_package(PNG REQUIRED)

#-------------------------------------------------------------------------------
# Hardware detection
#-------------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions examples/DIPDialect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ if(BUDDY_ENABLE_OPENCV)
include_directories(${OpenCV_INCLUDE_DIRS})
endif()

find_package(JPEG REQUIRED)
find_package(PNG REQUIRED)
add_library(DIP_LIBS INTERFACE)
target_link_libraries(DIP_LIBS INTERFACE ${JPEG_LIBRARY} ${PNG_LIBRARY} BuddyLibDIP)

Expand Down
2 changes: 0 additions & 2 deletions tests/Interface/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ if(BUDDY_ENABLE_OPENCV)
include_directories(${OpenCV_INCLUDE_DIRS})
endif()

find_package(JPEG REQUIRED)
find_package(PNG REQUIRED)
add_library(DIP_LIB INTERFACE)
target_link_libraries(DIP_LIB INTERFACE ${JPEG_LIBRARY} ${PNG_LIBRARY})

Expand Down

0 comments on commit 1cc211b

Please sign in to comment.