picrin/src/CMakeLists.txt

11 lines
543 B
CMake
Raw Normal View History

2014-03-01 11:52:41 -05:00
find_package(FLEX REQUIRED)
2014-03-01 23:24:12 -05:00
flex_target(scan src/scan.l ${PROJECT_SOURCE_DIR}/src/lex.yy.c COMPILE_FLAGS --header-file="src/lex.yy.h")
2014-03-01 11:52:41 -05:00
add_library(picrin SHARED
src/blob.c src/bool.c src/char.c src/codegen.c src/cont.c src/error.c
2014-03-01 23:21:26 -05:00
src/file.c src/gc.c src/init.c src/lib.c src/load.c src/macro.c
2014-03-01 11:52:41 -05:00
src/number.c src/pair.c src/port.c src/proc.c src/read.c src/state.c
src/string.c src/symbol.c src/system.c src/time.c src/var.c src/vector.c
2014-03-01 23:21:26 -05:00
src/vm.c src/write.c ${PROJECT_SOURCE_DIR}/src/lex.yy.c)
2014-03-01 11:52:41 -05:00
target_link_libraries(picrin m xfile)