30 lines
727 B
CMake
30 lines
727 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(metrics)
|
|
|
|
# Postavi verziju projekta
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
# Pronađi Boost biblioteku (ako nije uobičajeni direktorijum, postavi put)
|
|
# find_package(Boost REQUIRED COMPONENTS system)
|
|
|
|
# Dodaj direktorijume sa zaglavljima
|
|
include_directories(lib)
|
|
|
|
# Dodaj biblioteku
|
|
add_library(metrics STATIC
|
|
src/metrics.cpp
|
|
)
|
|
|
|
# # Linkaj log biblioteku sa Boost-om
|
|
# target_link_libraries(log Boost::system)
|
|
|
|
# Dodaj testove
|
|
add_subdirectory(test)
|
|
|
|
|
|
# Instaliraj biblioteku
|
|
# install(TARGETS log DESTINATION lib)
|
|
# install(FILES lib/log.hpp lib/define.hpp lib/engine.hpp lib/filesystem.hpp lib/timers.hpp lib/trigger.hpp DESTINATION include/log)
|
|
# |