diff --git a/qmljs/CMakeLists.txt b/qmljs/CMakeLists.txt index 1549372..d1a01cd 100644 --- a/qmljs/CMakeLists.txt +++ b/qmljs/CMakeLists.txt @@ -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()