Skip to content

Commit

Permalink
Adding installation instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed May 18, 2021
1 parent c38790b commit 0571c35
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu20.yml
Expand Up @@ -24,4 +24,6 @@ jobs:
ctest --output-on-failure &&
cmake --install . &&
cd ../tests/installation_tests/find &&
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build . &&
cd ../../issue72_installation &&
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build .
2 changes: 2 additions & 0 deletions .github/workflows/vs16-ci.yml
Expand Up @@ -24,4 +24,6 @@ jobs:
ctest --output-on-failure &&
cmake --install . &&
cd ../tests/installation_tests/find &&
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build .
cd ../../issue72_installation &&
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build .
25 changes: 25 additions & 0 deletions tests/installation_tests/issue72_installation/CMakeLists.txt
@@ -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)

0 comments on commit 0571c35

Please sign in to comment.