Skip to content

Commit

Permalink
build: Add local lib path for darwin and windows
Browse files Browse the repository at this point in the history
In longer term it would make sense to remove those libs
and use system's ones like linux

Change-Id: I6399b9715b245c2cc11828a0f3bb8f825f72c0c3
Bug: ganzziani#36
Signed-off-by: Philippe Coval <[email protected]>
  • Loading branch information
rzr committed Sep 30, 2018
1 parent a08f898 commit 0fc8478
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ pkg_check_modules(LIBUSB REQUIRED libusb-1.0)
include_directories(${LIBUSB_INCLUDE_DIRS})
link_directories(${LIBUSB_LIBRARY_DIRS})

if(UNIX AND APPLE)
link_directories(libs/mac)
elif(WIN32)
link_directories(libs/win)
endif()

#message(status "LIBUSB_INCLUDE_DIRS" ${LIBUSB_INCLUDE_DIRS} "LANGUAGE" ${LANGUAGE})

if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )
Expand Down

0 comments on commit 0fc8478

Please sign in to comment.