claugeas/CMakeLists.txt

35 lines
662 B
CMake
Raw Permalink Normal View History

2022-11-02 18:25:09 +03:00
cmake_minimum_required(VERSION 3.21)
2022-11-04 03:15:28 +03:00
project(clAugeas VERSION 1.0.1 DESCRIPTION "clAugeas description")
set(CMAKE_CXX_STANDARD 14)
2022-11-03 22:30:21 +03:00
2022-11-12 01:09:13 +03:00
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()
2022-11-03 22:30:21 +03:00
find_library(
AUGEAS
augeas
)
find_library(
xml2
xml
)
2022-11-03 22:30:21 +03:00
2022-11-04 03:15:28 +03:00
add_library(clAugeas SHARED
2022-11-05 21:43:43 +03:00
augSettings.cpp
augSettings.h
2022-11-12 01:09:13 +03:00
utils.h utils.cpp
2022-11-05 21:43:43 +03:00
main.cpp main.h)
2022-11-03 22:30:21 +03:00
target_link_libraries(clAugeas xml2)
2022-11-04 03:15:28 +03:00
target_link_libraries(clAugeas augeas)
2022-11-03 22:30:21 +03:00
2022-11-02 18:25:09 +03:00