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")
|
2022-11-06 20:21:55 +03:00
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
2022-11-03 22:30:21 +03:00
|
|
|
|
2022-11-06 20:21:55 +03:00
|
|
|
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()
|
2022-11-03 22:30:21 +03:00
|
|
|
|
2022-11-06 20:21:55 +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
|
|
|
|
main.cpp main.h)
|
2022-11-03 22:30:21 +03:00
|
|
|
|
2022-11-06 20:21:55 +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
|
|
|
|