message("BEGIN - UNIX toolchain with local XPERTMASS libraries")

message("")

# message(STATUS "Local install cmake prefix dir: $ENV{HOME}/.local/lib/x86_64-linux-gnu/cmake")

list(APPEND CMAKE_PREFIX_PATH "$ENV{HOME}/.local/lib/x86_64-linux-gnu/cmake")

find_package(
        XpertMass
        COMPONENTS Core Gui GLOBAL
        REQUIRED
    )

if(TARGET XpertMass::Core)
    message(STATUS "XpertMass::Core target available")
    get_target_property(core_includes XpertMass::Core INTERFACE_INCLUDE_DIRECTORIES)
    message(STATUS "Core includes: ${core_includes}")
endif()
if(TARGET XpertMass::Gui)
    message(STATUS "XpertMass::Gui target available")
    get_target_property(core_includes XpertMass::Gui INTERFACE_INCLUDE_DIRECTORIES)
    message(STATUS "Gui includes: ${core_includes}")
endif()

message("END - UNIX toolchain with local XPERTMASS libraries")
