Mercurial > minori
comparison dep/fmt/test/find-package-test/CMakeLists.txt @ 343:1faa72660932
*: transfer back to cmake from autotools
autotools just made lots of things more complicated than
they should have and many things broke (i.e. translations)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 20 Jun 2024 05:56:06 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
342:adb79bdde329 | 343:1faa72660932 |
---|---|
1 cmake_minimum_required(VERSION 3.8...3.25) | |
2 | |
3 project(fmt-test) | |
4 | |
5 find_package(FMT REQUIRED) | |
6 | |
7 add_executable(library-test main.cc) | |
8 target_link_libraries(library-test fmt::fmt) | |
9 target_compile_options(library-test PRIVATE ${PEDANTIC_COMPILE_FLAGS}) | |
10 target_include_directories(library-test PUBLIC SYSTEM .) | |
11 | |
12 if (TARGET fmt::fmt-header-only) | |
13 add_executable(header-only-test main.cc) | |
14 target_link_libraries(header-only-test fmt::fmt-header-only) | |
15 target_compile_options(header-only-test PRIVATE ${PEDANTIC_COMPILE_FLAGS}) | |
16 target_include_directories(header-only-test PUBLIC SYSTEM .) | |
17 endif () |