Added linux support (tested on Ubuntu)

CMakeList: fixed for building on linux
processpicker: linux process enumeration
main.cpp: "_Exit()" works on linux & windows
"ProcessMemory" plugin: added linux support
This commit is contained in:
Sen66
2026-02-09 15:09:42 +01:00
parent 0e65b9997e
commit 4029b05298
7 changed files with 421 additions and 77 deletions

View File

@@ -43,9 +43,10 @@ target_link_libraries(ReclassX PRIVATE
Qt6::Svg
Qt6::Concurrent
QScintilla::QScintilla
dbghelp
psapi
)
if(WIN32)
target_link_libraries(ReclassX PRIVATE dbghelp psapi)
endif()
add_custom_target(screenshot ALL
COMMAND ReclassX --screenshot ${CMAKE_BINARY_DIR}/screenshot.png
@@ -140,7 +141,10 @@ if(BUILD_TESTING)
target_include_directories(test_controller PRIVATE src)
target_link_libraries(test_controller PRIVATE
Qt6::Widgets Qt6::PrintSupport Qt6::Concurrent Qt6::Test
QScintilla::QScintilla dbghelp psapi)
QScintilla::QScintilla)
if(WIN32)
target_link_libraries(test_controller PRIVATE dbghelp psapi)
endif()
add_test(NAME test_controller COMMAND test_controller)
add_executable(test_validation tests/test_validation.cpp
@@ -149,7 +153,10 @@ if(BUILD_TESTING)
target_include_directories(test_validation PRIVATE src)
target_link_libraries(test_validation PRIVATE
Qt6::Widgets Qt6::PrintSupport Qt6::Concurrent Qt6::Test
QScintilla::QScintilla dbghelp psapi)
QScintilla::QScintilla)
if(WIN32)
target_link_libraries(test_validation PRIVATE dbghelp psapi)
endif()
add_test(NAME test_validation COMMAND test_validation)
add_executable(test_generator tests/test_generator.cpp
@@ -164,7 +171,10 @@ if(BUILD_TESTING)
target_include_directories(test_context_menu PRIVATE src)
target_link_libraries(test_context_menu PRIVATE
Qt6::Widgets Qt6::PrintSupport Qt6::Concurrent Qt6::Test
QScintilla::QScintilla dbghelp psapi)
QScintilla::QScintilla)
if(WIN32)
target_link_libraries(test_context_menu PRIVATE dbghelp psapi)
endif()
add_test(NAME test_context_menu COMMAND test_context_menu)
add_executable(test_new_features tests/test_new_features.cpp
@@ -173,7 +183,10 @@ if(BUILD_TESTING)
target_include_directories(test_new_features PRIVATE src)
target_link_libraries(test_new_features PRIVATE
Qt6::Widgets Qt6::PrintSupport Qt6::Concurrent Qt6::Test
QScintilla::QScintilla dbghelp psapi)
QScintilla::QScintilla)
if(WIN32)
target_link_libraries(test_new_features PRIVATE dbghelp psapi)
endif()
add_test(NAME test_new_features COMMAND test_new_features)
endif()
add_subdirectory(plugins/ProcessMemory)