claugeas/CMakeLists.txt

17 lines
449 B
CMake
Raw Normal View History

2022-11-02 18:25:09 +03:00
cmake_minimum_required(VERSION 3.21)
2022-11-03 22:39:33 +03:00
project(CAug VERSION 1.0.1 DESCRIPTION "CAug description")
2022-11-03 22:30:21 +03:00
2022-11-03 22:39:33 +03:00
include_directories(/opt/homebrew/opt/augeas/include/)
2022-11-02 18:25:09 +03:00
link_directories(/opt/homebrew/opt/augeas/lib)
2022-11-03 22:30:21 +03:00
2022-11-02 18:25:09 +03:00
set(CMAKE_CXX_STANDARD 14)
2022-11-03 22:30:21 +03:00
set(GCC_COVERAGE_COMPILE_FLAGS "-fdeclspec")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
2022-11-03 22:39:33 +03:00
add_library(CAug SHARED include/AugSettings.cpp main.cpp main.h)
2022-11-03 22:30:21 +03:00
2022-11-03 22:39:33 +03:00
target_link_libraries(CAug augeas)
2022-11-03 22:30:21 +03:00
2022-11-02 18:25:09 +03:00