-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
33 lines (25 loc) · 923 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
#
# Build CMakeFile for cpp-parquet
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.2)
PROJECT(cpp-parquet-proj)
# Set to use C++11
ADD_DEFINITIONS(-std=c++11)
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
# External projects for parquet-format and thrift
INCLUDE(ExternalProject)
INCLUDE(ParquetFormatCMakeLists)
INCLUDE(GoogleGlogCMakeLists)
INCLUDE(GoogleTestCMakeLists)
# INCLUDE(SnappyCMakeLists)
INCLUDE(CheckIncludeFileCXX)
FIND_PACKAGE(Thrift REQUIRED)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
INCLUDE_DIRECTORIES(${THRIFT_INCLUDE_DIR})
SET(LIBS ${LIBS} ${THRIFT_LIBS})
ADD_LIBRARY(thriftstatic STATIC IMPORTED)
SET_TARGET_PROPERTIES(thriftstatic PROPERTIES IMPORTED_LOCATION ${THRIFT_STATIC_LIB})
ExternalProject_Get_Property(google-glog install_dir)
include_directories (${install_dir}/include)
ADD_SUBDIRECTORY(parquet-file)
ADD_SUBDIRECTORY(avro-schema)
ADD_SUBDIRECTORY(examples)