CMakeLists.in 1.52 KB
Newer Older
Zardosht Kasheff's avatar
Zardosht Kasheff committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Copyright (C) 2006 MySQL AB
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

Zardosht Kasheff's avatar
Zardosht Kasheff committed
16
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTOKUDB_VERSION=\\\"TOKUDB_VERSION_REPLACE_ME\\\"")
Zardosht Kasheff's avatar
Zardosht Kasheff committed
17 18 19
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")

20
INCLUDE_DIRECTORIES(TOKUDB_DIR_REPLACE_ME/windows
21 22 23
                    TOKUDB_DIR_REPLACE_ME/src
                    TOKUDB_DIR_REPLACE_ME/include
                    TOKUDB_DIR_REPLACE_ME/toku_include)
Zardosht Kasheff's avatar
Zardosht Kasheff committed
24

25
INCLUDE("${PROJECT_SOURCE_DIR}/storage/mysql_storage_engine.cmake")
Zardosht Kasheff's avatar
Zardosht Kasheff committed
26
SET(TOKUDB_SOURCES hatoku_hton.cc ha_tokudb.cc hatoku_cmp.cc)
27
MYSQL_STORAGE_ENGINE(TOKUDB)
Zardosht Kasheff's avatar
Zardosht Kasheff committed
28

29
TARGET_LINK_LIBRARIES(ha_tokudb optimized TOKUDB_OBJ_DIR_REPLACE_ME/opt/ipo_libtokudb optimized TOKUDB_OBJ_DIR_REPLACE_ME/opt/libtokuportability debug TOKUDB_OBJ_DIR_REPLACE_ME/debug/static_libtokudb debug TOKUDB_OBJ_DIR_REPLACE_ME/debug/libtokuportability)