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 0f8119d commit e4f802c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ cmake_minimum_required(VERSION 3.5)

project(wxMinesweeper LANGUAGES CXX)

add_subdirectory(libs/wxWidgets-3.2.4)
add_executable(wxMinesweeper field.cpp field.h minesweeper.cpp minesweeper.h)
target_link_libraries(wxMinesweeper wx::net wx::core wx::base)
include(ExternalProject)
ExternalProject_Add(wxwidgets
GIT_REPOSITORY https://github.com/wxwidge
GIT_TAG origin/release/v3.2.4
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()
add_executable(${PROJECT_NAME} ${SRC_LIST})
target_link_libraries(${PROJECT_NAME} ${wxWidgets_LIBRARIES})

0 comments on commit e4f802c

Please sign in to comment.