diff --git a/CMakeLists.txt b/CMakeLists.txt index 39609f4..e28174f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)