CMakeLists.txt 942 Bytes
Newer Older
1
###############################################################################
2 3 4
#
# This file is part of CMake configuration for SOCI library
#
5
# Copyright (C) 2013 Mateusz Loskot <mateusz@loskot.net>
6 7 8 9
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
10
###############################################################################
11

12 13
colormsg(_HIBLUE_ "Configuring SOCI tests:")

14 15 16 17 18
# Request CATCH to disable all the C++11 features
if (NOT SOCI_CXX_C11)
  add_definitions(-DCATCH_CONFIG_NO_CPP11)
endif()

19 20 21 22 23 24 25 26 27 28 29 30 31 32
include_directories(
  ${SOCI_SOURCE_DIR}/include/private
  ${CMAKE_CURRENT_SOURCE_DIR})

file(GLOB SOCI_TESTS_COMMON common-tests.h)

add_subdirectory(empty)
add_subdirectory(db2)
add_subdirectory(firebird)
add_subdirectory(mysql)
add_subdirectory(odbc)
add_subdirectory(oracle)
add_subdirectory(postgresql)
add_subdirectory(sqlite3)