mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
CMake: add HAVE_LIBUDEV_H detection on Linux
This commit is contained in:
parent
a2e6dc9e42
commit
73430e1698
3 changed files with 9 additions and 0 deletions
|
|
@ -141,6 +141,10 @@ if(ENABLE_NLS)
|
|||
include_directories(${INTL_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
include(CheckIncludeFiles)
|
||||
check_include_files(libudev.h HAVE_LIBUDEV_H)
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
include/
|
||||
|
|
|
|||
|
|
@ -42,4 +42,5 @@
|
|||
#cmakedefine HAVE_ZLIB 1
|
||||
#cmakedefine HAVE_CU_GET_SUITE 1
|
||||
#cmakedefine HAVE_CU_CURSES 1
|
||||
#cmakedefine HAVE_LIBUDEV_H 0
|
||||
#cmakedefine ENABLE_NLS 1
|
||||
|
|
|
|||
|
|
@ -97,6 +97,10 @@ if(ENABLE_NOTIFY)
|
|||
target_link_libraries(linphone-gtk ${NOTIFY_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (HAVE_LIBUDEV_H)
|
||||
target_link_libraries(linphone-gtk udev)
|
||||
endif()
|
||||
|
||||
install(TARGETS linphone-gtk
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue