null+****@clear*****
null+****@clear*****
2012年 4月 13日 (金) 11:20:25 JST
Kouhei Sutou 2012-04-13 11:20:25 +0900 (Fri, 13 Apr 2012) New Revision: fba65857da34ca6233d68921afd670018f40e7e2 Log: cmake: build groonga command But groonga command is not buildable yet. We need more work to define some macros on CMake. Added files: src/CMakeLists.txt src/groonga_sources.am Modified files: CMakeLists.txt src/Makefile.am Modified: CMakeLists.txt (+1 -0) =================================================================== --- CMakeLists.txt 2012-04-13 11:18:05 +0900 (640b537) +++ CMakeLists.txt 2012-04-13 11:20:25 +0900 (eafe7d4) @@ -40,6 +40,7 @@ include_directories( ) add_subdirectory(lib) +add_subdirectory(src) macro(ac_check_headers header) string(REGEX REPLACE "[/.]" "_" output_variable_name ${header}) Added: src/CMakeLists.txt (+20 -0) 100644 =================================================================== --- /dev/null +++ src/CMakeLists.txt 2012-04-13 11:20:25 +0900 (9d0c70b) @@ -0,0 +1,20 @@ +# Copyright(C) 2012 Brazil +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License version 2.1 as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +include(${CMAKE_SOURCE_DIR}/build/cmake_modules/ReadFileList.cmake) + +read_file_list(${CMAKE_CURRENT_SOURCE_DIR}/groonga_sources.am GROONGA_SOURCES) + +add_executable(groonga ${GROONGA_SOURCES}) Modified: src/Makefile.am (+1 -1) =================================================================== --- src/Makefile.am 2012-04-13 11:18:05 +0900 (927f4c4) +++ src/Makefile.am 2012-04-13 11:20:25 +0900 (4a5b248) @@ -21,7 +21,7 @@ DEFAULT_INCLUDES = \ -I$(top_srcdir)/include \ $(GROONGA_INCLUDEDIR) -groonga_SOURCES = groonga.c +include groonga_sources.am nodist_EXTRA_groonga_SOURCES = $(NONEXISTENT_CXX_SOURCE) groonga_CFLAGS = $(AM_CFLAGS) $(LIBEDIT_CFLAGS) groonga_LDADD = \ Added: src/groonga_sources.am (+2 -0) 100644 =================================================================== --- /dev/null +++ src/groonga_sources.am 2012-04-13 11:20:25 +0900 (308fdc3) @@ -0,0 +1,2 @@ +groonga_SOURCES = \ + groonga.c