Navigation Menu

Skip to content

Commit

Permalink
cmake: Split file list to other file
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 20, 2012
1 parent 7b14be5 commit 459bc32
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 18 deletions.
19 changes: 1 addition & 18 deletions CMakeLists.txt
Expand Up @@ -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
Expand Down
34 changes: 34 additions & 0 deletions build/cmake/files.cmake
@@ -0,0 +1,34 @@
# Copyright(C) 2012 Kouhei Sutou <kou@clear-code.com>
#
# 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})

0 comments on commit 459bc32

Please sign in to comment.