2006-12-31 02:29:11 +01:00
|
|
|
# Copyright (C) 2006 MySQL AB
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License.
|
|
|
|
#
|
|
|
|
# This program 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 General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2007-04-23 22:23:32 +02:00
|
|
|
INCLUDE("${PROJECT_SOURCE_DIR}/win/mysql_manifest.cmake")
|
2006-12-31 02:29:11 +01:00
|
|
|
|
2007-08-03 11:06:53 +02:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
|
|
|
|
${CMAKE_SOURCE_DIR}/zlib
|
2007-06-15 09:52:58 +02:00
|
|
|
${CMAKE_SOURCE_DIR}/extra/yassl/include
|
2006-02-10 13:29:01 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/libmysql
|
|
|
|
${CMAKE_SOURCE_DIR}/regex
|
|
|
|
${CMAKE_SOURCE_DIR}/sql
|
|
|
|
${CMAKE_SOURCE_DIR}/strings)
|
2006-02-07 16:43:42 +01:00
|
|
|
|
2007-08-03 11:06:53 +02:00
|
|
|
ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc sql_string.cc ../mysys/my_conio.c)
|
2009-09-30 03:39:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES(mysql mysqlclient)
|
2006-01-31 14:52:16 +01:00
|
|
|
|
2008-08-04 21:54:44 +02:00
|
|
|
ADD_EXECUTABLE(mysqltest mysqltest.cc)
|
|
|
|
SET_SOURCE_FILES_PROPERTIES(mysqltest.cc PROPERTIES COMPILE_FLAGS "-DTHREADS")
|
2009-09-30 03:39:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES(mysqltest mysqlclient mysys regex dbug)
|
2006-02-10 13:29:01 +01:00
|
|
|
|
|
|
|
ADD_EXECUTABLE(mysqlcheck mysqlcheck.c)
|
2009-09-30 03:39:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES(mysqlcheck mysqlclient)
|
2006-02-10 13:29:01 +01:00
|
|
|
|
2007-08-03 11:06:53 +02:00
|
|
|
ADD_EXECUTABLE(mysqldump mysqldump.c ../sql-common/my_user.c ../mysys/mf_getdate.c)
|
2009-09-30 03:39:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES(mysqldump mysqlclient)
|
2006-02-10 13:29:01 +01:00
|
|
|
|
|
|
|
ADD_EXECUTABLE(mysqlimport mysqlimport.c)
|
2009-09-30 03:39:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES(mysqlimport mysqlclient)
|
2006-02-10 13:29:01 +01:00
|
|
|
|
2006-11-27 15:00:08 +01:00
|
|
|
ADD_EXECUTABLE(mysql_upgrade mysql_upgrade.c ../mysys/my_getpagesize.c)
|
2009-09-30 03:39:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES(mysql_upgrade mysqlclient)
|
2007-04-19 18:34:00 +02:00
|
|
|
ADD_DEPENDENCIES(mysql_upgrade GenFixPrivs)
|
2006-10-13 21:48:27 +02:00
|
|
|
|
2006-02-10 13:29:01 +01:00
|
|
|
ADD_EXECUTABLE(mysqlshow mysqlshow.c)
|
2009-09-30 03:39:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES(mysqlshow mysqlclient)
|
2006-02-10 13:29:01 +01:00
|
|
|
|
2007-08-03 11:06:53 +02:00
|
|
|
ADD_EXECUTABLE(mysqlbinlog mysqlbinlog.cc
|
|
|
|
../mysys/mf_tempdir.c
|
|
|
|
../mysys/my_new.cc
|
|
|
|
../mysys/my_bit.c
|
|
|
|
../mysys/my_bitmap.c
|
|
|
|
../mysys/my_vle.c
|
|
|
|
../mysys/base64.c)
|
2009-09-30 03:39:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES(mysqlbinlog mysqlclient)
|
2006-02-10 13:29:01 +01:00
|
|
|
|
|
|
|
ADD_EXECUTABLE(mysqladmin mysqladmin.cc)
|
2009-09-30 03:39:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES(mysqladmin mysqlclient)
|
2007-02-16 15:33:54 +01:00
|
|
|
|
2007-08-03 14:43:11 +02:00
|
|
|
ADD_EXECUTABLE(mysqlslap mysqlslap.c)
|
|
|
|
SET_SOURCE_FILES_PROPERTIES(mysqlslap.c PROPERTIES COMPILE_FLAGS "-DTHREADS")
|
2009-09-30 03:39:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES(mysqlslap mysqlclient mysys zlib dbug)
|
2007-08-03 14:43:11 +02:00
|
|
|
|
2007-02-16 15:33:54 +01:00
|
|
|
ADD_EXECUTABLE(echo echo.c)
|
|
|
|
|
2007-04-23 22:23:32 +02:00
|
|
|
IF(EMBED_MANIFESTS)
|
|
|
|
MYSQL_EMBED_MANIFEST("mysql" "asInvoker")
|
|
|
|
MYSQL_EMBED_MANIFEST("mysqltest" "asInvoker")
|
|
|
|
MYSQL_EMBED_MANIFEST("mysqlcheck" "asInvoker")
|
|
|
|
MYSQL_EMBED_MANIFEST("mysqldump" "asInvoker")
|
|
|
|
MYSQL_EMBED_MANIFEST("mysqlimport" "asInvoker")
|
|
|
|
MYSQL_EMBED_MANIFEST("mysql_upgrade" "asInvoker")
|
|
|
|
MYSQL_EMBED_MANIFEST("mysqlshow" "asInvoker")
|
|
|
|
MYSQL_EMBED_MANIFEST("mysqlbinlog" "asInvoker")
|
|
|
|
MYSQL_EMBED_MANIFEST("mysqladmin" "asInvoker")
|
|
|
|
MYSQL_EMBED_MANIFEST("echo" "asInvoker")
|
|
|
|
ENDIF(EMBED_MANIFESTS)
|
2007-08-03 11:06:53 +02:00
|
|
|
|