forked from hpcc-systems/hpcc-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (21 loc) · 976 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
cmake_minimum_required(VERSION 2.8)
project(jdbcdriver Java)
include(version.cmake)
OPTION(MAKE_TEST_PACKAGE "Create test package." OFF)
SET ( HPCC_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
SET ( PRODUCT_PREFIX "hpccsystems" )
SET ( HPCC_JDBC_PAC_PATH org/hpccsystems/jdbcdriver)
SET ( HPCC_JDBC_JAVA_SRC_PATH main/java)
SET ( HPCC_JDBC_REL_PATH src/${HPCC_JDBC_JAVA_SRC_PATH}/${HPCC_JDBC_PAC_PATH})
SET ( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
INCLUDE(${CMAKE_MODULE_PATH}/jdbcSetup.cmake)
IF ( NOT MAKE_DOCS_ONLY )
SET ( HPCC_ANTLR_SRC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/src/main/antlr3" )
SET ( HPCC_TEST_SRC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/src/test/java" )
MESSAGE ("-- JAVA Development components are required.")
FIND_PACKAGE (Java REQUIRED COMPONENTS Development)
FIND_PACKAGE(ANTLR REQUIRED)
ADD_SUBDIRECTORY (${HPCC_JDBC_REL_PATH})
SET ( INSTALLDIR "${EXEC_DIR}")
ENDIF()
ADD_SUBDIRECTORY(docs)