From 7ce86d2d32567b7cce5e92c50ad5c2527b98f4ec Mon Sep 17 00:00:00 2001 From: henrykorir Date: Thu, 23 May 2024 23:32:56 +0300 Subject: [PATCH] Added cmake script executer to install wxwidgets --- CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index db679e5..5b605b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,18 @@ if(NOT wxWidgets_FOUND) GIT_TAG v3.2.4 STEP_TARGETS build ) - execute_process(COMMAND ls | grep wx) + if (UNIX) + execute_process(COMMAND sudo ln -sv wx-3.2/wx wx) + endif (UNIX) + + if (WIN32) + #execute_process(COMMAND sudo ln -sv wx-2.8/wx wx) + endif (WIN32) + + if (MSVC) + # do something + endif (MSVC) + endif() execute_process(COMMAND wx-config --version) include(${wxWidgets_USE_FILE})