diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ebbbac..da5ad22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,12 +48,15 @@ else () message(STATUS "OpenSSL was not found.") endif () -target_include_directories(DeviceScanner PRIVATE "${USER_HOME_DIRECTORY}/ehs/include") -target_link_directories(DeviceScanner PRIVATE "${USER_HOME_DIRECTORY}/ehs/lib") - if (IS_OS_WINDOWS) + target_include_directories(DeviceScanner PRIVATE "${USER_HOME_DIRECTORY}/ehs/include") + target_link_directories(DeviceScanner PRIVATE "${USER_HOME_DIRECTORY}/ehs/lib") + target_link_libraries(DeviceScanner PRIVATE avrt ws2_32 IPHLPAPI) elseif (IS_OS_LINUX) + target_include_directories(DeviceScanner PRIVATE "${USER_HOME_DIRECTORY}/.local/include") + target_link_directories(DeviceScanner PRIVATE "${USER_HOME_DIRECTORY}/.local/lib") + if (LINUX_WINDOW_SYSTEM STREQUAL "Wayland") target_link_libraries(DeviceScanner PRIVATE wayland-client) elseif (LINUX_WINDOW_SYSTEM STREQUAL "XCB")