Skip to content

Commit

Permalink
Made image assest available to binary
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykorir committed Jun 17, 2024
1 parent ecf7a88 commit fd11be3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ project(wxMinesweeper LANGUAGES CXX)
# )
aux_source_directory(. SRC_LIST)

# Copy images to the binary directory during build

file(COPY
${PROJECT_SOURCE_DIR}/logo.png
${PROJECT_SOURCE_DIR}/mine.png
${PROJECT_SOURCE_DIR}/clock.xpm
${PROJECT_SOURCE_DIR}/red-flag.png
DESTINATION ${CMAKE_BINARY_DIR}
)

#find_package(wxWidgets REQUIRED COMPONENTS net core base)
#if(wxWidgets_USE_FILE) # not defined in CONFIG mode
# include(${wxWidgets_USE_FILE})
Expand Down

0 comments on commit fd11be3

Please sign in to comment.