diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:24:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:24:36 +0000 |
commit | 06eaf7232e9a920468c0f8d74dcf2fe8b555501c (patch) | |
tree | e2c7b5777f728320e5b5542b6213fd3591ba51e2 /storage/rocksdb/unittest/CMakeLists.txt | |
parent | Initial commit. (diff) | |
download | mariadb-06eaf7232e9a920468c0f8d74dcf2fe8b555501c.tar.xz mariadb-06eaf7232e9a920468c0f8d74dcf2fe8b555501c.zip |
Adding upstream version 1:10.11.6.upstream/1%10.11.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'storage/rocksdb/unittest/CMakeLists.txt')
-rw-r--r-- | storage/rocksdb/unittest/CMakeLists.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/storage/rocksdb/unittest/CMakeLists.txt b/storage/rocksdb/unittest/CMakeLists.txt new file mode 100644 index 00000000..de8d0d82 --- /dev/null +++ b/storage/rocksdb/unittest/CMakeLists.txt @@ -0,0 +1,22 @@ +IF (TARGET rocksdb) + INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/zlib + ${CMAKE_SOURCE_DIR}/unittest/mytap + ${CMAKE_SOURCE_DIR}/rocksdb/third-party/gtest-1.7.0/fused-src + ) + LINK_LIBRARIES(mytap mysys dbug strings) + + ADD_DEFINITIONS(-DSTANDALONE_UNITTEST) + + MYSQL_ADD_EXECUTABLE(test_properties_collector + test_properties_collector.cc + ) + TARGET_LINK_LIBRARIES(test_properties_collector mysqlserver) + + # Necessary to make sure that we can use the jemalloc API calls. + GET_TARGET_PROPERTY(mysql_embedded LINK_FLAGS PREV_LINK_FLAGS) + IF(NOT PREV_LINK_FLAGS) + SET(PREV_LINK_FLAGS) + ENDIF() + SET_TARGET_PROPERTIES(test_properties_collector PROPERTIES LINK_FLAGS + "${PREV_LINK_FLAGS} ${WITH_MYSQLD_LDFLAGS}") +ENDIF() |