Skip to content

Commit

Permalink
win32: include winpty sources directly
Browse files Browse the repository at this point in the history
  • Loading branch information
chhitz committed Jul 17, 2024
1 parent 3d6d196 commit 5bdee7e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions qmljs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,14 @@ target_include_directories(utils PRIVATE "${qt_creator_libs_src}" "${qt_creator_
target_link_libraries(utils PRIVATE Qt6::Widgets Qt6::Network Qt6::Xml Qt6::Core5Compat Qt6::Concurrent)

if(WIN32)
include(${CMAKE_CURRENT_SOURCE_DIR}/../qt-creator/cmake/QtCreatorAPI.cmake)
add_subdirectory(${qt_creator_libs_src}/3rdparty/winpty winpty)
file(GLOB_RECURSE winpty_source
"${qt_creator_libs_src}/3rdparty/winpty/src/libwinpty/*.cpp"
"${qt_creator_libs_src}/3rdparty/winpty/src/libwinpty/*.h"
"${qt_creator_libs_src}/3rdparty/winpty/src/shared/*.cpp"
"${qt_creator_libs_src}/3rdparty/winpty/src/shared/*.h")
target_sources(utils
${winpty_source}
)
target_include_directories(utils PRIVATE "${qt_creator_libs_src}/3rdparty/winpty/")
target_link_libraries(utils PRIVATE user32 iphlpapi ws2_32 shell32 dbghelp winpty)
endif()
Expand Down

0 comments on commit 5bdee7e

Please sign in to comment.