liblex/CMakeLists.txt
Danila Fedorin 0b6d73ebdf Write initial code for matching the patterns to a single string.
The code is limited in two aspects, at the moment:
* It's not very well tested
* The current "best" match is just the one that occurred last. While
this is just fine in terms of length, this leaves open to chance which
pattern type will be returned if multiple patterns of the same length
match.
2017-02-04 00:28:36 -08:00

13 lines
346 B
CMake

cmake_minimum_required(VERSION 2.7)
project(liblex)
add_library(lex STATIC src/pattern.c src/pairmap.c src/eval.c)
add_executable(liblex src/main.c)
add_subdirectory(external/libds)
target_include_directories(lex PUBLIC include)
target_include_directories(liblex PUBLIC include)
target_link_libraries(lex ds)
target_link_libraries(liblex lex)