diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d04760331..7ddf63af63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -433,6 +433,10 @@ set(P4RUNTIME_STD_DIR ${p4runtime_SOURCE_DIR}/proto CACHE INTERNAL ) ########################################## P4Runtime End ########################################## +add_subdirectory (frontends) +add_subdirectory (midend) +add_subdirectory (control-plane) + file (GLOB p4c_extensions RELATIVE ${P4C_SOURCE_DIR}/extensions ${P4C_SOURCE_DIR}/extensions/*) MESSAGE ("-- Available extensions ${p4c_extensions}") foreach (ext ${p4c_extensions}) @@ -450,10 +454,6 @@ foreach (ext ${p4c_extensions}) endif() endforeach(ext) -add_subdirectory (frontends) -add_subdirectory (midend) -add_subdirectory (control-plane) - # With the current implementation of ir-generator, all targets share the # same ir-generated.h and ir-generated.cpp file, which means all targets # share the same set of IR classes (frontend and backend). Backends such as the DPDK backend