InputCommon/CMakeLists: Link evdev and udev in privately
These libraries aren't directly used outside of InputCommon
This commit is contained in:
parent
d63d0b5069
commit
73ebc190fa
|
@ -74,7 +74,8 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(LIBEVDEV_FOUND AND LIBUDEV_FOUND)
|
if(LIBEVDEV_FOUND AND LIBUDEV_FOUND)
|
||||||
target_sources(inputcommon PRIVATE
|
target_sources(inputcommon
|
||||||
|
PRIVATE
|
||||||
ControllerInterface/evdev/evdev.cpp
|
ControllerInterface/evdev/evdev.cpp
|
||||||
)
|
)
|
||||||
target_include_directories(inputcommon
|
target_include_directories(inputcommon
|
||||||
|
@ -82,7 +83,8 @@ if(LIBEVDEV_FOUND AND LIBUDEV_FOUND)
|
||||||
${LIBEVDEV_INCLUDE_DIR}
|
${LIBEVDEV_INCLUDE_DIR}
|
||||||
${LIBUDEV_INCLUDE_DIR}
|
${LIBUDEV_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
target_link_libraries(inputcommon PUBLIC
|
target_link_libraries(inputcommon
|
||||||
|
PRIVATE
|
||||||
${LIBEVDEV_LIBRARY}
|
${LIBEVDEV_LIBRARY}
|
||||||
${LIBUDEV_LIBRARY}
|
${LIBUDEV_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue