2022-11-02 18:25:09 +03:00
|
|
|
cmake_minimum_required(VERSION 3.21)
|
2022-11-03 22:30:21 +03:00
|
|
|
project(BlueAug VERSION 1.0.1 DESCRIPTION "BlueAug description")
|
|
|
|
|
2022-11-02 18:25:09 +03:00
|
|
|
include_directories(/opt/homebrew/opt/augeas/include/) # Headers para auto-complete?
|
|
|
|
link_directories(/opt/homebrew/opt/augeas/lib)
|
2022-11-03 22:30:21 +03:00
|
|
|
|
2022-11-02 18:25:09 +03:00
|
|
|
# Os binarios com as libraries, como é mac .dylib, linux: .SO, etc
|
|
|
|
# tive que usar HOMEBREW_NO_INSTALL_CLEANUP=1 "brew install augeas --build-from-source"
|
|
|
|
# para ele armazenar o codigo compilado.
|
|
|
|
|
|
|
|
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}")
|
|
|
|
|
|
|
|
|
|
|
|
add_library(BlueAug SHARED include/AugSettings.cpp main.cpp main.h)
|
|
|
|
|
|
|
|
target_link_libraries(BlueAug augeas) # Se não ele não sabe que é para compilar para ARM64
|
|
|
|
|
|
|
|
|
|
|
|
#add_executable(BlueAug main.cpp AugFuncs.h AugManaged.h AugSettings.h)
|
2022-11-02 18:25:09 +03:00
|
|
|
|