forked from heavyai/heavydb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
23 lines (19 loc) · 1.26 KB
/
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
set(THRIFT_HANDLER_SOURCES DBHandler.cpp TokenCompletionHints.cpp CommandLineOptions.cpp SystemValidator.cpp ForeignTableRefreshScheduler.cpp)
set(THRIFT_HANDLER_LIBS mapd_thrift Shared ${CMAKE_DL_LIBS})
if("${MAPD_EDITION_LOWER}" STREQUAL "ee")
list(APPEND THRIFT_HANDLER_LIBS ${RdKafka_LIBRARIES} StringDictionary)
include_directories(${CMAKE_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/ee")
list(APPEND THRIFT_HANDLER_SOURCES ee/RenderHandler.cpp ee/DistributedHandler.cpp ee/HAHandler.cpp ee/KafkaMgr.cpp ee/DistributedValidate.cpp)
elseif("${MAPD_EDITION_LOWER}" STREQUAL "ce")
include_directories(${CMAKE_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/ee")
list(APPEND THRIFT_HANDLER_SOURCES ee/RenderHandler.cpp ee/ProjHitTestColSqlBuilder.cpp ee/DistributedHandler.cpp)
else()
include_directories(${CMAKE_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/os")
list(APPEND THRIFT_HANDLER_SOURCES os/RenderHandler.cpp)
endif()
add_library(QueryState QueryState.cpp)
add_library(token_completion_hints TokenCompletionHints.cpp)
target_link_libraries(token_completion_hints mapd_thrift)
add_library(thrift_handler ${THRIFT_HANDLER_SOURCES})
add_dependencies(thrift_handler Parser)
target_link_libraries(thrift_handler token_completion_hints QueryState UdfCompiler ${THRIFT_HANDLER_LIBS})