split into piclib/CMakeLists.txt
This commit is contained in:
parent
cefe1d8879
commit
e78ad9f452
|
@ -21,6 +21,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1")
|
||||||
include_directories(include extlib)
|
include_directories(include extlib)
|
||||||
|
|
||||||
# build picrin
|
# build picrin
|
||||||
|
include(piclib/CMakeLists.txt)
|
||||||
include(contrib/CMakeLists.txt)
|
include(contrib/CMakeLists.txt)
|
||||||
include(src/CMakeLists.txt)
|
include(src/CMakeLists.txt)
|
||||||
include(tools/CMakeLists.txt)
|
include(tools/CMakeLists.txt)
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
file(GLOB_RECURSE PICLIB_SCHEME_LIBS ${PROJECT_SOURCE_DIR}/piclib/*.scm)
|
|
@ -8,10 +8,9 @@ set(XFILE_SOURCES extlib/xfile/xfile.c)
|
||||||
|
|
||||||
# piclib
|
# piclib
|
||||||
find_package(Perl REQUIRED)
|
find_package(Perl REQUIRED)
|
||||||
file(GLOB_RECURSE PICLIB_SCHEME_LIBS ${PROJECT_SOURCE_DIR}/piclib/*.scm)
|
set(PICLIB_SOURCES ${PROJECT_SOURCE_DIR}/src/load_piclib.c)
|
||||||
list(APPEND PICLIBS ${PICLIB_SCHEME_LIBS})
|
list(APPEND PICLIBS ${PICLIB_SCHEME_LIBS})
|
||||||
list(APPEND PICLIBS ${PICLIB_CONTRIB_LIBS})
|
list(APPEND PICLIBS ${PICLIB_CONTRIB_LIBS})
|
||||||
set(PICLIB_SOURCES ${PROJECT_SOURCE_DIR}/src/load_piclib.c)
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${PICLIB_SOURCES}
|
OUTPUT ${PICLIB_SOURCES}
|
||||||
COMMAND ${PERL_EXECUTABLE} etc/mkloader.pl ${PICLIBS} > ${PROJECT_SOURCE_DIR}/src/load_piclib.c
|
COMMAND ${PERL_EXECUTABLE} etc/mkloader.pl ${PICLIBS} > ${PROJECT_SOURCE_DIR}/src/load_piclib.c
|
||||||
|
|
Loading…
Reference in New Issue