-
Notifications
You must be signed in to change notification settings - Fork 271
/
CMakeLists.txt
27 lines (22 loc) · 801 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
project(PyType)
# The minimum CMake version is currently governed by the CMake version that can
# be installed on the Travis Trusty VMs with apt-get.
cmake_minimum_required(VERSION 2.8)
if (WIN32)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
ENDIF()
set(CMAKE_MODULE_PATH
"${CMAKE_MODULE_PATH}"
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules"
)
include(PyTypeUtils)
set(PYTYPE_OUT_BIN_DIR ${PROJECT_BINARY_DIR}/bin)
file(MAKE_DIRECTORY ${PYTYPE_OUT_BIN_DIR})
add_subdirectory(pybind11)
add_subdirectory(pytype)
add_subdirectory(pytype_extensions)
add_subdirectory(third_party)
# Add the "googletest" directory at the end as it defines its own CMake rules
# for py_test etc. Adding it at the end avoids mixing up Pytype's definitions
# with these definitions.
add_subdirectory(googletest)