Fixed CMakeLists.
Some checks failed
Build & Release / Linux-AMD64-Build (push) Successful in 12s
Build & Release / Linux-AARCH64-Build (push) Failing after 25s
Build & Release / Windows-AMD64-Build (push) Successful in 25s

This commit is contained in:
Karutoh 2025-03-29 00:32:31 -07:00
parent 1992435fbb
commit b683c928ee

View File

@ -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")