1# Copyright (c) PLUMgrid, Inc.
2# Licensed under the Apache License, Version 2.0 (the "License")
3
4set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
5
6if (ENABLE_RTTI)
7set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -frtti")
8else()
9set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
10endif()
11
12include_directories(${CMAKE_CURRENT_SOURCE_DIR})
13include_directories(${CMAKE_CURRENT_BINARY_DIR})
14
15if(NOT PYTHON_ONLY)
16add_subdirectory(cc)
17endif()
18if(ENABLE_CLANG_JIT)
19add_subdirectory(python)
20add_subdirectory(lua)
21endif()
22