QuasarApp / QuasarAppLib

global function for quasar app
https://quasarapp.ddns.net:3031/docs/QuasarApp/QuasarAppLib/latest/
GNU Lesser General Public License v3.0
4 stars 2 forks source link

QuasarAppLib

Global functions used in applications QuasarApp. This lib include include next modules:

Build

Available build options:

option(QA_ALLOW_NOT_SUPPORTED_OPTIONS "Enable for allow any command line options" ON)
option(QA_DISABLE_LOG "Disabled all logs (force sets verbose to 0)" OFF)

Include

The cmake build do not required Qt libraries.

add_subdirectory(QuasarAppLib)
target_link_libraries(MyBinary PUBLIC QuasarApp)

Note

By Default QuasarAppLib makes as a static library. If you want to create a shared library just add the BUILD_SHARED_LIBS into your main CMakeLists.txt file. Example :

set(BUILD_SHARED_LIBS ON)
add_subdirectory(QuasarAppLib)
target_link_libraries(MyBinary PUBLIC QuasarApp)

Usage

#include <quasarapp.h>

if (!QuasarAppUtils::Params::parseParams(argc, argv)) {
    QuasarAppUtils::Params::log("Warning message", QuasarAppUtils::Warning);
    QuasarAppUtils::Params::showHelp();
    exit(0);
}