1 cmake_minimum_required(VERSION 2.8.12) 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) 9 10 if (TARGET fmt-header-only) 11 add_executable(header-only-test main.cc) 12 target_link_libraries(header-only-test fmt-header-only) 13 endif () 14