split into piclib/CMakeLists.txt

This commit is contained in:
Yuichi Nishiwaki 2014-05-21 00:48:56 +09:00
parent cefe1d8879
commit e78ad9f452
3 changed files with 3 additions and 2 deletions

View File

@ -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)

1
piclib/CMakeLists.txt Normal file
View File

@ -0,0 +1 @@
file(GLOB_RECURSE PICLIB_SCHEME_LIBS ${PROJECT_SOURCE_DIR}/piclib/*.scm)

View File

@ -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