null+****@clear*****
null+****@clear*****
2012年 3月 20日 (火) 19:05:30 JST
Kouhei Sutou 2012-03-20 19:05:30 +0900 (Tue, 20 Mar 2012)
New Revision: 459bc32729d80c9cc43618c907bc66e4afa6f61c
Log:
cmake: Split file list to other file
Added files:
build/cmake/files.cmake
Modified files:
CMakeLists.txt
Modified: CMakeLists.txt (+1 -18)
===================================================================
--- CMakeLists.txt 2012-03-20 18:45:59 +0900 (92a8c09)
+++ CMakeLists.txt 2012-03-20 19:05:30 +0900 (6f7ffc1)
@@ -26,24 +26,7 @@ set(MRN_VERSION_IN_HEX
"0x0${MRN_VERSION_MAJOR}${MRN_VERSION_MINOR}${MRN_VERSION_MICRO}")
set(MRN_PACKAGE_STRING "${PROJECT_NAME} ${MRN_VERSION}")
-set(MROONGA_C_SOURCES
- mrn_sys.c
- mrn_sys.h
-
- mrn_macro.h
- mrn_err.h
- mrn_mysql.h
- mrn_mysql_compat.h
- )
-set(MROONGA_CPP_SOURCES
- ha_mroonga.cc
- ha_mroonga.h
- mrn_table.cc
- mrn_table.h
- lib/mrn_path_mapper.cpp
- lib/mrn_path_mapper.hpp
- )
-set(MROONGA_SOURCES ${MROONGA_C_SOURCES} ${MROONGA_CPP_SOURCES})
+include(build/cmake/files.cmake)
# TODO: set VERSIONINFO for Microsoft Visual C++.
# http://msdn.microsoft.com/en-us/library/aa381058%28VS.85%29.aspx
Added: build/cmake/files.cmake (+34 -0) 100644
===================================================================
--- /dev/null
+++ build/cmake/files.cmake 2012-03-20 19:05:30 +0900 (d204ad6)
@@ -0,0 +1,34 @@
+# Copyright(C) 2012 Kouhei Sutou <kou****@clear*****>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+set(MROONGA_C_SOURCES
+ mrn_sys.c
+ mrn_sys.h
+
+ mrn_macro.h
+ mrn_err.h
+ mrn_mysql.h
+ mrn_mysql_compat.h
+ )
+set(MROONGA_CPP_SOURCES
+ ha_mroonga.cc
+ ha_mroonga.h
+ mrn_table.cc
+ mrn_table.h
+ lib/mrn_path_mapper.cpp
+ lib/mrn_path_mapper.hpp
+ )
+set(MROONGA_SOURCES ${MROONGA_C_SOURCES} ${MROONGA_CPP_SOURCES})