From c2283dbde0ae51b61f1e755a445da45e9e8f8a12 Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 2 May 2023 00:04:32 +0000 Subject: [PATCH] [SymForce] Fix test include paths The tests shouldn't have to include these headers directly, the generated functions include them. Reviewers: danny Topic: sym-test-include-paths GitOrigin-RevId: 478f4e601402ab1a762f43b92360706703f6c374 --- test/CMakeLists.txt | 6 ++++-- test/custom_function_replacement_symengine_test.cc | 1 - test/custom_function_replacement_sympy_test.cc | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c0179f041..107a3d075 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -9,8 +9,10 @@ file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin/tests) # symforce_test library file(GLOB_RECURSE SYMFORCE_TEST_SOURCES CONFIGURE_DEPENDS symforce_function_codegen_test_data/**/*.cc) -file(GLOB_RECURSE SYMFORCE_TEST_HEADERS CONFIGURE_DEPENDS symforce_function_codegen_test_data/**/*.hpp) -file(GLOB_RECURSE SYMFORCE_TEST_HEADERS CONFIGURE_DEPENDS include/*.h) +file(GLOB_RECURSE SYMFORCE_TEST_HEADERS CONFIGURE_DEPENDS + symforce_function_codegen_test_data/**/*.hpp + include/*.h +) add_library( symforce_test ${SYMFORCE_LIBRARY_TYPE} diff --git a/test/custom_function_replacement_symengine_test.cc b/test/custom_function_replacement_symengine_test.cc index 1a5c764ec..a768ff12a 100644 --- a/test/custom_function_replacement_symengine_test.cc +++ b/test/custom_function_replacement_symengine_test.cc @@ -5,7 +5,6 @@ #include -#include "include/custom_function_replacement_header.h" #include "symforce_function_codegen_test_data/symengine/custom_function_replacement.h" TEST_CASE("Generated function with function replacement is correct", "[custom_func_replacement]") { diff --git a/test/custom_function_replacement_sympy_test.cc b/test/custom_function_replacement_sympy_test.cc index 4d484746c..51a8f28d5 100644 --- a/test/custom_function_replacement_sympy_test.cc +++ b/test/custom_function_replacement_sympy_test.cc @@ -5,7 +5,6 @@ #include -#include "include/custom_function_replacement_header.h" #include "symforce_function_codegen_test_data/sympy/custom_function_replacement.h" TEST_CASE("Generated function with function replacement is correct", "[custom_func_replacement]") {