InputCommon/CMakeLists: Link evdev and udev in privately

These libraries aren't directly used outside of InputCommon
This commit is contained in:
Lioncash 2018-04-10 09:53:08 -04:00
parent d63d0b5069
commit 73ebc190fa
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
1 changed files with 4 additions and 2 deletions

View File

@ -74,7 +74,8 @@ else()
endif()
if(LIBEVDEV_FOUND AND LIBUDEV_FOUND)
target_sources(inputcommon PRIVATE
target_sources(inputcommon
PRIVATE
ControllerInterface/evdev/evdev.cpp
)
target_include_directories(inputcommon
@ -82,7 +83,8 @@ if(LIBEVDEV_FOUND AND LIBUDEV_FOUND)
${LIBEVDEV_INCLUDE_DIR}
${LIBUDEV_INCLUDE_DIR}
)
target_link_libraries(inputcommon PUBLIC
target_link_libraries(inputcommon
PRIVATE
${LIBEVDEV_LIBRARY}
${LIBUDEV_LIBRARY}
)