"Fossies" - the Fresh Open Source Software Archive

Member "mysql-connector-c-6.1.11-src/strings/CMakeLists.txt" (13 Jul 2017, 1996 Bytes) of package /linux/misc/old/mysql-connector-c-6.1.11-src.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "CMakeLists.txt": 6.1.10-src_vs_6.1.11-src.

    1 # Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
    2 #
    3 # This program is free software; you can redistribute it and/or modify
    4 # it under the terms of the GNU General Public License as published by
    5 # the Free Software Foundation; version 2 of the License.
    6 #
    7 # This program is distributed in the hope that it will be useful,
    8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   10 # GNU General Public License for more details.
   11 #
   12 # You should have received a copy of the GNU General Public License
   13 # along with this program; if not, write to the Free Software
   14 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
   15 
   16 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
   17 
   18 SET(STRINGS_SOURCES bchange.c ctype-big5.c ctype-bin.c ctype-cp932.c
   19                 ctype-czech.c ctype-euc_kr.c ctype-eucjpms.c ctype-extra.c ctype-gb2312.c ctype-gbk.c ctype-gb18030.c
   20                 ctype-latin1.c ctype-mb.c ctype-simple.c ctype-sjis.c ctype-tis620.c ctype-uca.c
   21                 ctype-ucs2.c ctype-ujis.c ctype-utf8.c ctype-win1250ch.c ctype.c decimal.c dtoa.c int2str.c
   22                 is_prefix.c llstr.c longlong2str.c my_strtoll10.c my_vsnprintf.c
   23                 str2int.c str_alloc.c strcend.c strend.c strfill.c strmake.c
   24                 my_stpmov.c my_stpnmov.c
   25                 strxmov.c strxnmov.c xml.c
   26 		my_strchr.c strcont.c strappend.c)
   27 
   28 IF(NOT HAVE_STRNLEN)
   29   # OSX does not have strnlen
   30   SET(STRINGS_SOURCES ${STRINGS_SOURCES} strnlen.c)
   31 ENDIF()
   32 # Avoid dependencies on perschema data defined in mysys
   33 ADD_DEFINITIONS(-DDISABLE_MYSQL_THREAD_H)
   34 ADD_CONVENIENCE_LIBRARY(strings ${STRINGS_SOURCES})
   35 
   36 if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
   37   target_compile_options(strings PRIVATE
   38     -Wno-unused-variable           # ctype-ucs2.c:2583
   39   )
   40 endif()
   41 
   42 ADD_EXECUTABLE(conf_to_src EXCLUDE_FROM_ALL conf_to_src.c)
   43 TARGET_LINK_LIBRARIES(conf_to_src strings)