Fixed CMakeLists.
Some checks failed
Build & Release / Linux-AMD64-Build (push) Failing after 5s
Build & Release / Windows-AMD64-Build (push) Failing after 8s
Build & Release / Linux-AARCH64-Build (push) Failing after 8s

This commit is contained in:
Karutoh 2025-03-29 00:21:32 -07:00
parent 49701eba65
commit 50d162c441

View File

@ -26,8 +26,6 @@ endif ()
set(CMAKE_CXX_STANDARD 20)
add_subdirectory(external/ehs)
add_executable(DeviceScanner main.cpp)
if (IS_OS_WINDOWS)
@ -36,8 +34,6 @@ elseif (IS_OS_LINUX)
add_compile_definitions(VK_USE_PLATFORM_WAYLAND_KHR EHS_WS_WAYLAND)
endif()
target_include_directories(DeviceScanner PRIVATE "external/ehs/include")
find_package(ZLIB REQUIRED)
if (ZLIB_FOUND)
message(STATUS "ZLIB was found.")
@ -52,6 +48,9 @@ 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_link_libraries(DeviceScanner PRIVATE avrt ws2_32 IPHLPAPI)
elseif (IS_OS_LINUX)