diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 713c663..e370559 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -62,3 +62,4 @@ if (FASTFLOAT_EXHAUSTIVE) fast_float_add_cpp_test(random64) endif(FASTFLOAT_EXHAUSTIVE) +add_subdirectory(build_tests) \ No newline at end of file diff --git a/tests/build_tests/CMakeLists.txt b/tests/build_tests/CMakeLists.txt new file mode 100644 index 0000000..da762eb --- /dev/null +++ b/tests/build_tests/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(issue72) \ No newline at end of file diff --git a/tests/build_tests/issue72/CMakeLists.txt b/tests/build_tests/issue72/CMakeLists.txt new file mode 100644 index 0000000..efe39a2 --- /dev/null +++ b/tests/build_tests/issue72/CMakeLists.txt @@ -0,0 +1,2 @@ +add_executable(issue72 main.cpp foo.cpp) +target_link_libraries(issue72 PUBLIC fast_float) \ No newline at end of file diff --git a/tests/build_tests/issue72/foo.cpp b/tests/build_tests/issue72/foo.cpp new file mode 100644 index 0000000..cbe2412 --- /dev/null +++ b/tests/build_tests/issue72/foo.cpp @@ -0,0 +1,2 @@ +#include "test.h" +void foo() { } \ No newline at end of file diff --git a/tests/build_tests/issue72/main.cpp b/tests/build_tests/issue72/main.cpp new file mode 100644 index 0000000..3d46c0a --- /dev/null +++ b/tests/build_tests/issue72/main.cpp @@ -0,0 +1,2 @@ +#include "test.h" +int main() { return 0; } \ No newline at end of file diff --git a/tests/build_tests/issue72/test.h b/tests/build_tests/issue72/test.h new file mode 100644 index 0000000..550a31b --- /dev/null +++ b/tests/build_tests/issue72/test.h @@ -0,0 +1,2 @@ +#pragma once +#include "fast_float/fast_float.h" \ No newline at end of file