Brenden Blanco | 246b942 | 2015-06-05 11:15:27 -0700 | [diff] [blame] | 1 | # Copyright (c) PLUMgrid, Inc. |
| 2 | # Licensed under the Apache License, Version 2.0 (the "License") |
Brenden Blanco | cd5cb41 | 2015-04-26 09:41:58 -0700 | [diff] [blame] | 3 | |
| 4 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") |
| 5 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti") |
| 6 | |
Brenden Blanco | cd5cb41 | 2015-04-26 09:41:58 -0700 | [diff] [blame] | 7 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
| 8 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
| 9 | |
Brenden Blanco | 439a9f3 | 2015-07-03 16:10:29 -0700 | [diff] [blame] | 10 | if(NOT PYTHON_ONLY) |
Brenden Blanco | cd5cb41 | 2015-04-26 09:41:58 -0700 | [diff] [blame] | 11 | add_subdirectory(cc) |
Brenden Blanco | 439a9f3 | 2015-07-03 16:10:29 -0700 | [diff] [blame] | 12 | endif() |
Brenden Blanco | 7fef695 | 2017-08-22 15:47:12 -0700 | [diff] [blame] | 13 | if(ENABLE_CLANG_JIT) |
Brenden Blanco | d8acf6f | 2015-06-07 22:32:33 -0700 | [diff] [blame] | 14 | add_subdirectory(python) |
Vicent Marti | 836141c | 2016-03-31 02:43:56 +0200 | [diff] [blame] | 15 | add_subdirectory(lua) |
Brenden Blanco | 7fef695 | 2017-08-22 15:47:12 -0700 | [diff] [blame] | 16 | endif() |