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 81ca0dc commit cda4a9f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 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
22 changes: 11 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
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)
execute_process(COMMAND sudo chmod +x ./script && ./script)
endif()
# 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)
# execute_process(COMMAND sudo chmod +x ./script && ./script)
# endif()
execute_process(COMMAND wx-config --version)
include(${wxWidgets_USE_FILE})
add_executable(wxMinesweeper field.cpp field.h minesweeper.cpp minesweeper.h)
Expand Down

0 comments on commit cda4a9f

Please sign in to comment.