ug4
main.cpp File Reference

Functions

int main (int argc, char **argv)
 

Detailed Description

This is a lightweight wrapper for ugshell_main. It simply calls ugshell_main with the provided arguments.

If you'd like to do something before ugshell_main is executed, you may write your own main.cpp and compile ug with the

-DALTERNATE_MAIN=PATH_TO_YOUR_MAIN/main.cpp
int main()
Definition: main.cpp:38

option.

Alternatively, you may also create a plugin or enhance your existing one. To this end add an 'alternate_main.cpp' file and a CMakeLists.txt to your plugin which contains the line:

set(ALTERNATE_MAIN "${CMAKE_CURRENT_SOURCE_DIR}/alternate_main.cpp" CACHE PATH "Wrapper to ugshell_main." FORCE)

In that case, the alternate_main.cpp is automatically activated as soon as you enable your plugin.

If you want to return to the original main, please deactivate the plugin in question and once call:

cmake -DUNSET_ALTERNATE_MAIN=ON .
cmake
Definition: unit_tests.doxygen:198

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

References ugshell_main().