Skip to content

Commit

Permalink
Added necessary library and fix actions logic
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykorir committed Jun 15, 2024
1 parent b94bbc9 commit 55e7767
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
build:
runs-on: ${{ matrix.os }}

permissions: write-all

strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
Expand Down Expand Up @@ -58,7 +60,7 @@ jobs:
# this is for build testing only, not shipping binaries, so don't bother verifying the key
if: ${{matrix.os == 'ubuntu-latest'}}
run: |
sudo apt-get install -y cmake build-essential libgtk2.0-dev libgtk-3-dev
sudo apt-get install -y build-essential libgtk2.0-dev libgtk-3-dev
- 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
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ ExternalProject_Add(wxwidgets
STEP_TARGETS build
)
aux_source_directory(. SRC_LIST)
#find_package(wxWidgets REQUIRED COMPONENTS net core base)
#if(wxWidgets_USE_FILE) # not defined in CONFIG mode
# include(${wxWidgets_USE_FILE})
#endif()
find_package(wxWidgets REQUIRED COMPONENTS net core base)
if(wxWidgets_USE_FILE) # not defined in CONFIG mode
include(${wxWidgets_USE_FILE})
endif()
add_executable(${PROJECT_NAME} ${SRC_LIST})
target_link_libraries(${PROJECT_NAME} ${wxWidgets_LIBRARIES})

0 comments on commit 55e7767

Please sign in to comment.