THRIFT-2850 CMake for Apache Thrift
Change project name to "Apache Thrift" and add test/py
diff --git a/CMakeLists.txt b/CMakeLists.txt
index afdd746..4db182e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,7 +19,7 @@
cmake_minimum_required(VERSION 2.8.12)
-project(thrift)
+project("Apache Thrift")
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/build/cmake")
@@ -92,6 +92,9 @@
if(BUILD_PYTHON)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/py)
+ if(BUILD_TESTING)
+ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/test/py)
+ endif()
endif()
PRINT_CONFIG_SUMMARY()