]>
Commit | Line | Data |
---|---|---|
20effc67 | 1 | cmake_minimum_required(VERSION 3.1...3.18) |
11fdf7f2 | 2 | |
20effc67 | 3 | project(fmt-test CXX) |
11fdf7f2 TL |
4 | |
5 | add_subdirectory(../.. fmt) | |
6 | ||
20effc67 | 7 | add_executable(library-test main.cc) |
11fdf7f2 | 8 | target_include_directories(library-test PUBLIC SYSTEM .) |
20effc67 TL |
9 | target_compile_options(library-test PRIVATE ${PEDANTIC_COMPILE_FLAGS}) |
10 | target_link_libraries(library-test fmt::fmt) | |
11fdf7f2 TL |
11 | |
12 | if (TARGET fmt::fmt-header-only) | |
20effc67 | 13 | add_executable(header-only-test main.cc) |
11fdf7f2 | 14 | target_include_directories(header-only-test PUBLIC SYSTEM .) |
20effc67 TL |
15 | target_compile_options(header-only-test PRIVATE ${PEDANTIC_COMPILE_FLAGS}) |
16 | target_link_libraries(header-only-test fmt::fmt-header-only) | |
11fdf7f2 | 17 | endif () |