aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/lexer
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-17 10:49:37 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-17 10:49:37 +0300
commit9ada1c0fd699d9b9c746688c5c39cd72a0c7593d (patch)
tree31c95244174fb686f09e0979d0d2e42ede357c8e /server/lexer
parentAppVeyor: only Debug on Win32 (diff)
downloadmath-server-9ada1c0fd699d9b9c746688c5c39cd72a0c7593d.tar.gz
math-server-9ada1c0fd699d9b9c746688c5c39cd72a0c7593d.zip
cmake: minor tweks for the greater good
Diffstat (limited to 'server/lexer')
-rw-r--r--server/lexer/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/lexer/CMakeLists.txt b/server/lexer/CMakeLists.txt
index 9c696d3..64375e8 100644
--- a/server/lexer/CMakeLists.txt
+++ b/server/lexer/CMakeLists.txt
@@ -1,5 +1,7 @@
-find_package(Boost REQUIRED COMPONENTS regex)
-
-add_library(lexer details/parse.cpp lexer.cpp token.cpp token_type.cpp)
+file(GLOB_RECURSE lexer_cpp "*.cpp")
+file(GLOB_RECURSE lexer_hpp "*.hpp")
+add_library(lexer ${lexer_cpp} ${lexer_hpp})
target_link_libraries(lexer PUBLIC common)
+
+find_package(Boost REQUIRED COMPONENTS regex)
target_link_libraries(lexer PRIVATE Boost::disable_autolinking Boost::regex)