claugeas/CMakeLists.txt

36 lines
692 B
CMake

cmake_minimum_required(VERSION 3.21)
project(clAugeas VERSION 1.0.1 DESCRIPTION "clAugeas description")
set(CMAKE_CXX_STANDARD 14)
if(WIN32)
message("TODO: Windows instructions")
elseif(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
main.cpp main.h)
target_link_libraries(clAugeas xml2)
target_link_libraries(clAugeas augeas)