From e78ad9f452d1d8143d40e51dce31238b793125ed Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 21 May 2014 00:48:56 +0900 Subject: [PATCH] split into piclib/CMakeLists.txt --- CMakeLists.txt | 1 + piclib/CMakeLists.txt | 1 + src/CMakeLists.txt | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 piclib/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f404438..41dbde5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1") include_directories(include extlib) # build picrin +include(piclib/CMakeLists.txt) include(contrib/CMakeLists.txt) include(src/CMakeLists.txt) include(tools/CMakeLists.txt) diff --git a/piclib/CMakeLists.txt b/piclib/CMakeLists.txt new file mode 100644 index 00000000..9f76afd9 --- /dev/null +++ b/piclib/CMakeLists.txt @@ -0,0 +1 @@ +file(GLOB_RECURSE PICLIB_SCHEME_LIBS ${PROJECT_SOURCE_DIR}/piclib/*.scm) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b0fd7acc..1896448d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -8,10 +8,9 @@ set(XFILE_SOURCES extlib/xfile/xfile.c) # piclib 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_CONTRIB_LIBS}) -set(PICLIB_SOURCES ${PROJECT_SOURCE_DIR}/src/load_piclib.c) add_custom_command( OUTPUT ${PICLIB_SOURCES} COMMAND ${PERL_EXECUTABLE} etc/mkloader.pl ${PICLIBS} > ${PROJECT_SOURCE_DIR}/src/load_piclib.c