Fixed CMakeLists.
This commit is contained in:
parent
49701eba65
commit
50d162c441
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user