35 lines
662 B
CMake
35 lines
662 B
CMake
cmake_minimum_required(VERSION 3.21)
|
|
project(clAugeas VERSION 1.0.1 DESCRIPTION "clAugeas description")
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
if(APPLE)
|
|
include_directories(/opt/homebrew/opt/augeas/include/)
|
|
#link_directories(/opt/homebrew/opt/augeas/lib) # TODO: Check if works with this commente.d
|
|
elseif(UNIX)
|
|
include_directories(/usr/include/libxml2/)
|
|
endif()
|
|
|
|
|
|
find_library(
|
|
AUGEAS
|
|
augeas
|
|
|
|
)
|
|
find_library(
|
|
xml2
|
|
xml
|
|
)
|
|
|
|
add_library(clAugeas SHARED
|
|
augSettings.cpp
|
|
augSettings.h
|
|
utils.h utils.cpp
|
|
main.cpp main.h)
|
|
|
|
target_link_libraries(clAugeas xml2)
|
|
|
|
target_link_libraries(clAugeas augeas)
|
|
|
|
|
|
|