Implementation using python invocation using qprocess
This commit is contained in:
parent
cd67e8ddd7
commit
66937e2cfc
7 changed files with 174 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ find_package(PkgConfig REQUIRED)
|
|||
pkg_check_modules(EISMULIPLEXER REQUIRED eismuliplexer)
|
||||
find_package(Qt6 REQUIRED COMPONENTS Widgets)
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core)
|
||||
# find_package(Python3 REQUIRED) - Removed since we're using QProcess instead of embedding Python
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
|
@ -45,11 +46,16 @@ add_executable(${PROJECT_NAME}
|
|||
multiplexer.cpp
|
||||
triggerwidget.cpp
|
||||
triggerwidget.h
|
||||
pythonrunner.cpp
|
||||
pythonrunner.h
|
||||
pythonembed.cpp
|
||||
)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE ON)
|
||||
target_compile_options(${PROJECT_NAME} PUBLIC "-Wall")
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC QCodeEditor)
|
||||
# target_include_directories(${PROJECT_NAME} PRIVATE ${Python3_INCLUDE_DIRS}) - Removed since we're using QProcess instead of embedding Python
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Widgets Qt6::Core ${EISMULIPLEXER_LIBRARIES} QCodeEditor)
|
||||
# ${Python3_LIBRARIES} - Removed since we're using QProcess instead of embedding Python
|
||||
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/resources/eismultiplexerqt.png PROPERTIES QT_RESOURCE_ALIAS eismultiplexerqt.png)
|
||||
qt_add_resources(${PROJECT_NAME} "resources" PREFIX "/" FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/eismultiplexerqt.png )
|
||||
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue