Skip to content

Commit 89005b7

Browse files
lszekerescopybara-github
authored andcommitted
Simplify CMake build files.
PiperOrigin-RevId: 764548411
1 parent 027a6ee commit 89005b7

File tree

6 files changed

+1
-20
lines changed

6 files changed

+1
-20
lines changed

CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,9 @@ include(cmake/BuildDependencies.cmake)
5252
include(cmake/FuzzTestHelpers.cmake)
5353
include(cmake/CompatibilityModeLinkLibFuzzer.cmake)
5454

55-
include_directories(${re2_SOURCE_DIR})
56-
5755
if (FUZZTEST_BUILD_TESTING)
5856
enable_testing()
59-
endif ()
6057

61-
if (FUZZTEST_BUILD_TESTING)
6258
set(protobuf_PROTOC_EXE "${protobuf_BINARY_DIR}/protoc")
6359
include(${protobuf_SOURCE_DIR}/cmake/protobuf-generate.cmake)
6460
endif ()
@@ -71,6 +67,7 @@ add_subdirectory(fuzztest/internal/domains)
7167
add_subdirectory(grammar_codegen)
7268
add_subdirectory(grammar_codegen/generated_antlr_parser)
7369
add_subdirectory(tools)
70+
7471
if (FUZZTEST_BUILD_TESTING)
7572
add_subdirectory(domain_tests)
7673
add_subdirectory(e2e_tests)

domain_tests/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
get_filename_component(PARENT_DIR ../ ABSOLUTE)
2-
include_directories(${PARENT_DIR})
3-
4-
include_directories(${CMAKE_BINARY_DIR})
5-
61
fuzztest_cc_test(
72
NAME
83
aggregate_combinators_test

e2e_tests/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
get_filename_component(PARENT_DIR ../ ABSOLUTE)
2-
include_directories(${PARENT_DIR})
31

42
fuzztest_cc_library(
53
NAME

e2e_tests/testdata/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
get_filename_component(PARENT_DIR ../ ABSOLUTE)
2-
include_directories(${PARENT_DIR})
3-
4-
include_directories(${CMAKE_BINARY_DIR})
51
add_executable(
62
fuzz_tests_for_microbenchmarking
73
fuzz_tests_for_microbenchmarking.cc

fuzztest/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
get_filename_component(PARENT_DIR ../ ABSOLUTE)
16-
include_directories(${PARENT_DIR})
17-
1815
if (NOT COMPILER_GCC)
1916
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize-coverage=0")
2017
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize-coverage=0")

grammar_codegen/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
get_filename_component(PARENT_DIR ../ ABSOLUTE)
2-
include_directories(${PARENT_DIR})
31

42
add_library(
53
grammar_info

0 commit comments

Comments
 (0)