mirror of
https://github.com/fmtlib/fmt.git
synced 2024-09-03 05:29:16 +00:00
15 lines
445 B
CMake
15 lines
445 B
CMake
cmake_minimum_required(VERSION 2.6)
|
|
project(FORMAT)
|
|
|
|
add_library(format format.cc)
|
|
|
|
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/gtest/CMakeLists.txt)
|
|
add_subdirectory(gtest)
|
|
include_directories(gtest/include)
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR}/gtest)
|
|
enable_testing()
|
|
add_executable(format_test format_test.cc gtest/src/gtest_main.cc)
|
|
target_link_libraries(format_test format gtest)
|
|
add_test(format_test format_test)
|
|
endif ()
|