From 9ada1c0fd699d9b9c746688c5c39cd72a0c7593d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 17 Oct 2020 10:49:37 +0300 Subject: cmake: minor tweks for the greater good --- server/lexer/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'server/lexer') 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) -- cgit v1.2.3