liblex/CMakeLists.txt

13 lines
321 B
CMake

cmake_minimum_required(VERSION 2.7)
project(liblex)
add_library(lex STATIC src/pattern.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)