claugeas/CMakeLists.txt

17 lines
449 B
CMake

cmake_minimum_required(VERSION 3.21)
project(CAug VERSION 1.0.1 DESCRIPTION "CAug description")
include_directories(/opt/homebrew/opt/augeas/include/)
link_directories(/opt/homebrew/opt/augeas/lib)
set(CMAKE_CXX_STANDARD 14)
set(GCC_COVERAGE_COMPILE_FLAGS "-fdeclspec")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
add_library(CAug SHARED include/AugSettings.cpp main.cpp main.h)
target_link_libraries(CAug augeas)