polardbxengine/unittest/gunit/innodb/lob/CMakeLists.txt

80 lines
2.3 KiB
CMake

# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2.0,
# as published by the Free Software Foundation.
#
# This program is also distributed with certain software (including
# but not limited to OpenSSL) that is licensed under separate terms,
# as designated in a particular file or component or in included license
# documentation. The authors of MySQL hereby grant you an additional
# permission to link the program and your derivative works with the
# separately licensed software that they have included with MySQL.
#
# 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, version 2.0, 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
SET(ZLOB_SRC_FILES
zlob0int-t.cc
zlob0int.cc
zlob0int.h
mtr0log.cc
ut0dbg.cc
lot0buf.cc
fil0fil.cc
fut0lst.cc
lot0dat.cc)
# Plain LOB (or Uncompressed LOB) source files.
SET(PLOB_SRC_FILES
lot0lot.cc
lot0buf.cc
lot0dat.cc
lot0dat.h
lot0lob.h
lot0lob.cc
mach0data.h
fut0lst.cc
fil0fil.cc
mtr0log.cc
ut0dbg.cc
lob0int.cc)
ADD_EXECUTABLE(lot0lot-t ${PLOB_SRC_FILES})
ADD_EXECUTABLE(ut0plist-t
lot0buf.cc
mtr0log.cc
ut0dbg.cc
ut0plist.cc
)
ADD_EXECUTABLE(ut0frags-t
fil0fil.cc
fut0lst.cc
lot0buf.cc
mtr0log.cc
ut0dbg.cc
ut0frags.cc
zlob0int.cc
)
ADD_EXECUTABLE(zlob0int-t ${ZLOB_SRC_FILES})
TARGET_LINK_LIBRARIES(zlob0int-t ${ZLIB_LIBRARY} ${GTEST_LIBRARIES} gunit_small)
TARGET_LINK_LIBRARIES(lot0lot-t ${ZLIB_LIBRARY} ${GTEST_LIBRARIES} gunit_small)
TARGET_LINK_LIBRARIES(ut0frags-t ${ZLIB_LIBRARY})
# These executables get their main() from gunit_small, and have stack trace.
SET_TARGET_PROPERTIES(lot0lot-t PROPERTIES ENABLE_EXPORTS TRUE)
SET_TARGET_PROPERTIES(zlob0int-t PROPERTIES ENABLE_EXPORTS TRUE)
# Don't run these by default, run manually
# ADD_TEST(lot0lot lot0lot-t)
# ADD_TEST(ut0plist ut0plist-t)
# ADD_TEST(ut0frags ut0frags-t)
# ADD_TEST(zlob0int zlob0int-t)