2017-01-19 19:33:37 -08:00
|
|
|
cmake_minimum_required(VERSION 2.7)
|
2017-03-18 17:36:13 -07:00
|
|
|
|
|
|
|
if(TARGET lex)
|
|
|
|
return()
|
|
|
|
endif(TARGET lex)
|
|
|
|
|
2017-01-19 19:33:37 -08:00
|
|
|
project(liblex)
|
|
|
|
|
2017-02-04 00:28:36 -08:00
|
|
|
add_library(lex STATIC src/pattern.c src/pairmap.c src/eval.c)
|
2017-01-19 19:33:37 -08:00
|
|
|
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)
|