Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kelley committed May 28, 2022
1 parent 1a2c353 commit 2992cf4
Show file tree
Hide file tree
Showing 18 changed files with 54,885 additions and 13 deletions.
24 changes: 23 additions & 1 deletion WordleArchive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,30 @@
#
cmake_minimum_required (VERSION 3.8)

# Set the project name and version
project (WordleArchive VERSION 1.0)

set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_STANDARD_REQUIRED True)


# Add source to this project's executable.
add_executable (WordleArchive "WordleArchive.cpp" "WordleArchive.h")
add_executable (WordleArchive "WordleArchive.cpp" "WordleArchive.h" "color.cpp" "strtoupper.cpp" "word_dict.cpp" "word_list.cpp" "wordle_statistics.cpp")

add_custom_command(
TARGET WordleArchive POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory
${CMAKE_CURRENT_BINARY_DIR}/files)
add_custom_command(
TARGET WordleArchive POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}/WordleArchive/files/word_list.txt
${CMAKE_CURRENT_BINARY_DIR}/files/word_list.txt)
add_custom_command(
TARGET WordleArchive POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}/WordleArchive/files/wordles.txt
${CMAKE_CURRENT_BINARY_DIR}/files/wordles.txt)

if (CMAKE_VERSION VERSION_GREATER 3.12)
set_property(TARGET WordleArchive PROPERTY CXX_STANDARD 20)
Expand Down
Loading

0 comments on commit 2992cf4

Please sign in to comment.