Debian Codegraph @

unittest/gunit/temptable/CMakeLists.txt

raw
1 # Copyright (c) 2018, 2026, Oracle and/or its affiliates.
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, version 2.0,
5 # as published by the Free Software Foundation.
6 #
7 # This program is designed to work with certain software (including
8 # but not limited to OpenSSL) that is licensed under separate terms,
9 # as designated in a particular file or component or in included license
10 # documentation. The authors of MySQL hereby grant you an additional
11 # permission to link the program and your derivative works with the
12 # separately licensed software that they have either included with
13 # the program or referenced in the documentation.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License, version 2.0, for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
24 SET(TESTS
25 allocator
26 cell_calculator
27 cell
28 temptable-handler
29 result
30 )
31
32 SET(ALL_TEMPTABLE_TESTS)
33 FOREACH(test ${TESTS})
34 LIST(APPEND ALL_TEMPTABLE_TESTS ${test}-t.cc)
35 ENDFOREACH()
36
37 IF(WIN32)
38 LIST(APPEND ALL_TEMPTABLE_TESTS ../../../sql/nt_servc.cc)
39 ENDIF()
40 MYSQL_ADD_EXECUTABLE(merge_temptable_tests-t ${ALL_TEMPTABLE_TESTS}
41 ENABLE_EXPORTS
42 DEPENDENCIES GenError
43 ADD_TEST merge_temptable_tests-t
44 EXCLUDE_FROM_GCOV
45 LINK_LIBRARIES gunit_large server_unittest_library perfschema
46 )
47
48 # Download TBB from https://www.threadingbuildingblocks.org
49 #SET(TBB_INCDIR /path/to/tbb43_20150611oss/include)
50 #SET(TBB_LIBDIR /path/to/tbb43_20150611oss/build/linux_intel64_gcc_cc4.9.1_libc2.12_kernel2.6.39_release)
51 #TARGET_LINK_LIBRARIES(merge_temptable_tests-t tbb -L${TBB_LIBDIR} -Wl,-rpath=${TBB_LIBDIR})
52 #INCLUDE_DIRECTORIES(${TBB_INCDIR})
53
54 FOREACH(test ${TESTS})
55 SET(SRC_FILES ${test}-t.cc)
56 IF(WIN32)
57 LIST(APPEND SRC_FILES ../../../sql/nt_servc.cc)
58 ENDIF()
59
60 MYSQL_ADD_EXECUTABLE(${test}-t ${SRC_FILES}
61 ENABLE_EXPORTS
62 SKIP_INSTALL
63 EXCLUDE_FROM_ALL
64 LINK_LIBRARIES gunit_large server_unittest_library
65 DEPENDENCIES GenError
66 ADD_GCOV_TEST ${test}
67 )
68 ENDFOREACH()
69