-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
52 lines (42 loc) · 1.44 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.10)
include(FetchContent)
# For colors in the shell
FetchContent_Declare(termcolor
GIT_REPOSITORY git://github.com/ikalnytskyi/termcolor.git
GIT_TAG origin/master)
FetchContent_GetProperties(termcolor)
if(NOT termcolor_POPULATED)
FetchContent_Populate(termcolor)
add_subdirectory(${termcolor_SOURCE_DIR} ${termcolor_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
# For the progress bar
FetchContent_Declare(indicators
GIT_REPOSITORY git://github.com/p-ranav/indicators.git
GIT_TAG origin/master
)
FetchContent_GetProperties(indicators)
if(NOT indicators_POPULATED)
FetchContent_Populate(indicators)
add_subdirectory(${indicators_SOURCE_DIR} ${indicators_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
# Prompt
FetchContent_Declare(replxx
GIT_REPOSITORY git://github.com/AmokHuginnsson/replxx.git
GIT_TAG origin/master
)
FetchContent_GetProperties(replxx)
if(NOT replxx_POPULATED)
FetchContent_Populate(replxx)
add_subdirectory(${replxx_SOURCE_DIR} ${replxx_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
# set the project name
project(WordleSolverCLI)
if(NOT TARGET library_WordleSolver)
add_subdirectory(src)
endif()
# add the executable
add_executable(WordleSolverCLI wordlesolver.cpp)
target_link_libraries(WordleSolverCLI PRIVATE WordleSolver)
target_link_libraries(WordleSolverCLI PRIVATE termcolor)
target_link_libraries(WordleSolverCLI PRIVATE indicators)
target_link_libraries(WordleSolverCLI PRIVATE replxx)