-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (21 loc) · 954 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.8)
project("ktkit - kentsu tool kit" VERSION 0.0.1)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_COMPILER "/usr/bin/g++" CACHE STRING "gnu c++ compiler" FORCE)
set(CMAKE_C_COMPILER "/usr/bin/gcc" CACHE STRING "gnu cc compiler" FORCE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O3 -std=c++11")
find_package(Boost 1.74 COMPONENTS program_options REQUIRED)
set(MYSQL_CONNECTOR_CPP_DIR "/usr/lib/x86_64-linux-gnu")
set(MYSQL_CONNECTOR_INCLUDE_DIR "/usr/include/mysql-cppconn-8")
find_library(
MYSQL_CONN_CPP_LIBS
NAMES mysqlcppconn8 libmysqlconncpp8
HINTS "${MYSQL_CONNECTOR_CPP_DIR}"
NO_DEFAULT_PATH
)
message("-- mysql connector libs - ${MYSQL_CONN_CPP_LIBS}")
set(KTKIT_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/libs/include)
message("-- ktkit include dir - ${KTKIT_INCLUDE_DIR}")
add_subdirectory(libs)
add_subdirectory(innodb-buffer-page-list)