use file glob
This commit is contained in:
parent
6eac53e715
commit
d01a29b0e0
|
@ -1,10 +1,8 @@
|
||||||
|
# flex
|
||||||
find_package(FLEX REQUIRED)
|
find_package(FLEX REQUIRED)
|
||||||
flex_target(scan src/scan.l ${PROJECT_SOURCE_DIR}/src/lex.yy.c COMPILE_FLAGS --header-file="src/lex.yy.h")
|
flex_target(scan src/scan.l ${PROJECT_SOURCE_DIR}/src/lex.yy.c COMPILE_FLAGS --header-file="src/lex.yy.h")
|
||||||
|
|
||||||
add_library(picrin SHARED
|
# build!
|
||||||
src/blob.c src/bool.c src/char.c src/codegen.c src/cont.c src/error.c
|
file(GLOB C_SOURCES ${PROJECT_SOURCE_DIR}/src/*.c)
|
||||||
src/file.c src/gc.c src/init.c src/lib.c src/load.c src/macro.c
|
add_library(picrin SHARED ${C_SOURCES} ${FLEX_scan_OUTPUTS})
|
||||||
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
|
|
||||||
src/vm.c src/write.c ${PROJECT_SOURCE_DIR}/src/lex.yy.c)
|
|
||||||
target_link_libraries(picrin m xfile)
|
target_link_libraries(picrin m xfile)
|
||||||
|
|
Loading…
Reference in New Issue