-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (24 loc) · 993 Bytes
/
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
project(speller)
cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_STANDARD 17)
add_library(speller_utility_library INTERFACE "include/speller/utility.hpp")
target_include_directories(speller_utility_library INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
add_library(speller_library STATIC
"src/alphabet.cpp" "include/speller/alphabet.hpp"
"src/letter.cpp" "include/speller/letter.hpp"
"src/locale.cpp" "include/speller/locale.hpp"
"src/word.cpp" "include/speller/word.hpp"
)
target_include_directories(speller_library PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
add_executable(speller_regex "src/regex_main.cpp")
target_link_libraries(speller_regex speller_utility_library)
add_executable(speller_search "src/search_main.cpp")
target_link_libraries(speller_search
speller_library
speller_utility_library
)
add_executable(speller_search_any "src/search_any_main.cpp")
target_link_libraries(speller_search_any
speller_library
speller_utility_library
)