liblex/CMakeLists.txt

22 lines
529 B
CMake

cmake_minimum_required(VERSION 2.7)
if(TARGET lex)
return()
endif(TARGET lex)
project(liblex)
add_compile_options(-pedantic -Wall)
add_library(lex STATIC src/pattern.c src/pairmap.c src/eval.c)
add_executable(liblex src/main.c)
add_subdirectory(external/libds)
set_property(TARGET lex PROPERTY C_STANDARD 90)
set_property(TARGET liblex PROPERTY C_STANDARD 90)
target_include_directories(lex PUBLIC include)
target_include_directories(liblex PUBLIC include)
target_link_libraries(lex ds)
target_link_libraries(liblex lex)