Skip to content

Commit

Permalink
Added cmake script executer to install wxwidgets
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykorir committed May 23, 2024
1 parent ef763ec commit 81ca0dc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Add wxWidgets 3.2 packages
# this is for build testing only, not shipping binaries, so don't bother verifying the key
run: |
sudo chmod +x script.sh && ./script.sh
# - name: Add wxWidgets 3.2 packages
# # this is for build testing only, not shipping binaries, so don't bother verifying the key
# run: |
# sudo chmod +x script.sh && ./script.sh

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand Down
17 changes: 9 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ cmake_minimum_required(VERSION 3.5)
project(wxMinesweeper LANGUAGES CXX)
find_package(wxWidgets)
if(NOT wxWidgets_FOUND)
include(ExternalProject)
ExternalProject_Add(
wxWidgets
GIT_REPOSITORY https://github.com/wxWidgets/wxWidgets
GIT_TAG v3.2.4
STEP_TARGETS build
)
execute_process(COMMAND sudo ldconfig)
# include(ExternalProject)
# ExternalProject_Add(
# wxWidgets
# GIT_REPOSITORY https://github.com/wxWidgets/wxWidgets
# GIT_TAG v3.2.4
# STEP_TARGETS build
# )
# execute_process(COMMAND sudo ldconfig)
execute_process(COMMAND sudo chmod +x ./script && ./script)
endif()
execute_process(COMMAND wx-config --version)
include(${wxWidgets_USE_FILE})
Expand Down

0 comments on commit 81ca0dc

Please sign in to comment.