UniK uses IncludeOS as a platform for compiling C++ applications to unikernels. Building IncludeOS unikernels requires conforming to the structure of an IncludeOS project, documented here, with an example here.
You can also see an example here
Your application code will be called from Service::start()
in service.cpp