Debian Codegraph @

storage/innobase/unittest/CMakeLists.txt

raw
1 # Copyright (c) 2021, MariaDB Corporation.
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-1335 USA
15
16 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
17 ${CMAKE_SOURCE_DIR}/unittest/mytap
18 ${CMAKE_SOURCE_DIR}/storage/innobase/include
19 ${CMAKE_SOURCE_DIR}/tpool)
20 ADD_EXECUTABLE(innodb_rbt-t innodb_rbt-t.cc ../ut/ut0rbt.cc)
21 TARGET_LINK_LIBRARIES(innodb_rbt-t mysys mytap)
22 ADD_DEPENDENCIES(innodb_rbt-t GenError)
23 MY_ADD_TEST(innodb_rbt)
24 ADD_EXECUTABLE(innodb_fts-t innodb_fts-t.cc)
25 TARGET_LINK_LIBRARIES(innodb_fts-t mysys mytap)
26 ADD_DEPENDENCIES(innodb_fts-t GenError)
27 MY_ADD_TEST(innodb_fts)
28 IF (WITH_INNODB_AHI)
29 ADD_EXECUTABLE(innodb_ahi-t innodb_ahi-t.cc)
30 TARGET_LINK_LIBRARIES(innodb_ahi-t mysys mytap)
31 ADD_DEPENDENCIES(innodb_ahi-t GenError)
32 MY_ADD_TEST(innodb_ahi)
33 ENDIF()
34 # See explanation in innobase/CmakeLists.txt
35 IF(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64|powerpc64|s390x")
36 ADD_COMPILE_FLAGS(
37 ../sync/srw_lock.cc
38 COMPILE_FLAGS "-mhtm"
39 )
40 ENDIF()
41 ADD_EXECUTABLE(innodb_sync-t innodb_sync-t.cc ../sync/srw_lock.cc)
42 TARGET_LINK_LIBRARIES(innodb_sync-t mysys mytap)
43 ADD_DEPENDENCIES(innodb_sync-t GenError)
44 MY_ADD_TEST(innodb_sync)