1cmake_minimum_required(VERSION 2.8.12) 2 3project(fmt-test) 4 5find_package(FMT REQUIRED) 6 7add_executable(library-test main.cc) 8target_link_libraries(library-test fmt) 9 10if (TARGET fmt-header-only) 11 add_executable(header-only-test main.cc) 12 target_link_libraries(header-only-test fmt-header-only) 13endif () 14