Debian Codegraph @

tests/installation_tests/issue72_installation/CMakeLists.txt

raw
1 cmake_minimum_required(VERSION 3.15)
2
3 project(test_simdjson_install VERSION 0.1.0 LANGUAGES CXX)
4
5 set(CMAKE_CXX_STANDARD 17)
6 set(CMAKE_CXX_STANDARD_REQUIRED ON)
7 if(MSVC_VERSION GREATER 1910)
8 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -permissive-")
9 endif()
10
11 find_package(FastFloat REQUIRED)
12
13
14
15 file(WRITE test.h "
16 #pragma once
17 #include \"fast_float/fast_float.h\"")
18
19 file(WRITE main.cpp "
20 #include \"test.h\"
21 int main() { return 0; }")
22
23 file(WRITE foo.cpp "
24 #include \"test.h\"
25 void foo() { }")
26 add_executable(issue72 main.cpp main.cpp)
27 target_link_libraries(issue72 PUBLIC FastFloat::fast_float)