From e6a37f9ca8f958ca0d8b8546a06c4b5e902e66d7 Mon Sep 17 00:00:00 2001 From: ngiambla Date: Tue, 11 Jun 2019 09:25:38 -0400 Subject: [PATCH] For out of tree builds, the include directories need to reference the newly generated .hh files in the 'build' (or whatever out of tree build) directory. CMakeLists.txt was updated to reflect this: include_directories(). Also, I added a .gitignore to prevent executables (i.e. example/ot_parser, example/sample_parser, unittest/regression) from being sucked into a commit. --- .gitignore | 4 ++++ CMakeLists.txt | 1 + 2 files changed, 5 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9e1c8c5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +build/ +example/ot_parser +example/sample_parser +unittest/regression diff --git a/CMakeLists.txt b/CMakeLists.txt index 80e4db9..eed48fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2") # add the binary tree to the search path for include files include_directories(${PROJECT_SOURCE_DIR}) +include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(parser-verilog)