1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
# Copyright 2007 - 2008 MySQL AB, 2008 - 2009 Sun Microsystems, Inc. All rights reserved.
#
# The MySQL Connector/C++ is licensed under the terms of the GPL
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
# MySQL Connectors. There are special exceptions to the terms and
# conditions of the GPL as it is applied to this software, see the
# FLOSS License Exception
# <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
INCLUDE_DIRECTORIES(${MYSQLCPPCONN_SOURCE_DIR})
INCLUDE_DIRECTORIES(${MYSQLCPPCONN_SOURCE_DIR}/cppconn)
IF(WIN32)
LINK_DIRECTORIES(${MYSQL_DIR}/lib/$(ConfigurationName))
LINK_DIRECTORIES(../framework/$(ConfigurationName))
SET(MY_TARGET_LINK_LIBRARIES mysqlcppconn libmysql test_framework)
SET(MY_TARGET_LINK_LIBRARIES_STATIC_CPPLIB mysqlcppconn-static libmysql test_framework)
# ADD_DEFINITIONS("-D_SECURE_SCL")
ADD_DEFINITIONS("-D_SCL_SECURE_NO_WARNINGS")
ADD_DEFINITIONS("-D_CRT_SECURE_NO_WARNINGS")
ELSEIF(NOT WIN32)
SET(MY_TARGET_LINK_LIBRARIES mysqlcppconn mysqlclient_r test_framework)
ENDIF(WIN32)
IF(CMAKE_COMPILER_IS_GNUCC AND MYSQLCPPCONN_GCOV_ENABLE)
SET(MY_GCOV_LINK_LIBRARIES gcov)
ENDIF(CMAKE_COMPILER_IS_GNUCC AND MYSQLCPPCONN_GCOV_ENABLE)
IF(MYSQLCPPCONN_TEST_NOT_IMPLEMENTED)
ADD_DEFINITIONS("-DINCLUDE_NOT_IMPLEMENTED_METHODS=1")
ENDIF(MYSQLCPPCONN_TEST_NOT_IMPLEMENTED)
MESSAGE(STATUS "Configuring unit tests")
ADD_SUBDIRECTORY(example/)
ADD_SUBDIRECTORY(classes/)
ADD_SUBDIRECTORY(performance/)
ADD_SUBDIRECTORY(bugs/)
# Copy&Paste template: change directory name and uncomment
# ADD_SUBDIRECTORY(template_bug_group)
ADD_SUBDIRECTORY(template_bug_group)
|