3
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/)
4
INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}) # for config.h
6
INCLUDE_DIRECTORIES(${GLIB_INCLUDE_DIRS})
7
INCLUDE_DIRECTORIES(${MYSQL_INCLUDE_DIRS})
8
INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIRS})
9
INCLUDE_DIRECTORIES(${EVENT_INCLUDE_DIRS})
11
LINK_DIRECTORIES(${MYSQL_LIBRARY_DIRS})
12
LINK_DIRECTORIES(${LUA_LIBRARY_DIRS})
13
LINK_DIRECTORIES(${GLIB_LIBRARY_DIRS})
14
LINK_DIRECTORIES(${EVENT_LIBRARY_DIRS})
16
## tests for the chassis
18
ADD_EXECUTABLE(check_chassis_log
21
TARGET_LINK_LIBRARIES(check_chassis_log
27
ADD_EXECUTABLE(check_plugin
29
../../src/chassis-plugin.c
31
TARGET_LINK_LIBRARIES(check_plugin
36
ADD_EXECUTABLE(check_mysqld_proto
39
../../src/network-mysqld-proto.c
40
../../src/network-mysqld-binlog.c
42
TARGET_LINK_LIBRARIES(check_mysqld_proto
46
## this test needs a existing sql-tokenizer.c ...
47
## it depends on the build-order if that is already generated
49
#ADD_EXECUTABLE(check_sql_tokenizer
50
# check_sql_tokenizer.c
51
# ../../build-src/sql-tokenizer.c
54
#TARGET_LINK_LIBRARIES(check_sql_tokenizer
58
ADD_EXECUTABLE(check_loadscript
61
../../src/lua-load-factory.c
62
../../src/chassis-stats.c
65
TARGET_LINK_LIBRARIES(check_loadscript
72
ADD_EXECUTABLE(check_chassis_path
74
../../src/chassis-log.c
75
../../src/chassis-mainloop.c
76
../../src/chassis-plugin.c
77
../../src/chassis-stats.c
78
../../src/chassis-path.c
81
TARGET_LINK_LIBRARIES(check_chassis_path
88
ADD_EXECUTABLE(t_network_injection
90
../../src/network-injection.c
92
../../src/network-mysqld-proto.c
93
../../src/network-mysqld-packet.c
96
TARGET_LINK_LIBRARIES(t_network_injection
102
ADD_EXECUTABLE(t_network_backend
104
../../src/network-backend.c
105
../../src/network-conn-pool.c
106
../../src/network-socket.c
108
../../src/network-mysqld-proto.c
109
../../src/network-mysqld-packet.c
110
../../src/network-address.c
113
TARGET_LINK_LIBRARIES(t_network_backend
122
ADD_TEST(check_chassis_log check_chassis_log)
123
ADD_TEST(check_plugin check_plugin)
124
ADD_TEST(check_mysqld_proto check_mysqld_proto)
125
#ADD_TEST(check_sql_tokenizer check_sql_tokenizer)
126
ADD_TEST(check_loadscript check_loadscript)
127
ADD_TEST(check_chassis_path check_chassis_path)
128
ADD_TEST(t_network_injection t_network_injection)
129
ADD_TEST(t_network_backend t_network_backend)