Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tests/installation_tests/issue72_installation/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
|
||
project(test_simdjson_install VERSION 0.1.0 LANGUAGES CXX) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
find_package(FastFloat REQUIRED) | ||
|
||
|
||
|
||
file(WRITE test.h " | ||
#pragma once | ||
#include \"fast_float/fast_float.h\"") | ||
|
||
file(WRITE main.cpp " | ||
#include \"test.h\" | ||
int main() { return 0; }") | ||
|
||
file(WRITE foo.cpp " | ||
#include \"test.h\" | ||
void foo() { }") | ||
|
||
add_executable(issue72 main.cpp main.cpp) | ||
target_link_libraries(issue72 PUBLIC FastFloat::fast_float) |