forked from blue-yonder/turbodbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (29 loc) · 903 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
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 2.8.12)
project(turbodbc_intern CXX)
# Take precedence over system modules
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake_scripts)
include(default_build_setup)
# Boost 1.70 comes with its own CMake config which is incompatible with
# using FindBoost.cmake from CMake. While we still support older Boost
# versions, rely on the CMake built-in.
set(Boost_NO_BOOST_CMAKE ON)
add_subdirectory(pybind11)
find_package(GTest)
if (GTest_FOUND OR GTEST_FOUND)
include_directories(${GTEST_INCLUDE_DIR})
else()
add_subdirectory(google_test)
set(GTEST_LIBRARY gtest)
set(GMOCK_LIBRARY gmock)
set(GMOCK_MAIN_LIBRARY gmock_main)
endif()
add_subdirectory(cpp)
add_subdirectory(python)
add_subdirectory(docs)
if(BUILD_TESTING)
enable_testing()
endif()
install(
FILES setup.py setup.cfg MANIFEST.in Makefile LICENSE README.md CHANGELOG.rst
DESTINATION .
)