ff7tk 0.80.25
Work with Final Fantasy 7 game data
|
To build ff7tk you will a minimum of:
A Default Build of ff7tk will build:
ff7tk Supports Several Build options Build Options:
Option | Description | Default Value | Addtional Requirments |
---|---|---|---|
QT_DEFAULT_MAJOR_VERSION | The Major Version of Qt to use | 5 | |
CMAKE_BUILD_TYPE | Type of Build that is produced | ReleaseWithDebInfo | |
DOCS | Build Documentation. | ON | doxygen |
BUILD_TESTING | Build and run unit tests | ON | |
BUILD_DEMOS | Build The Demo Applications | OFF | |
WIDGET_GALLERY | Build the Widget based gallery. | ON | Depends on BUILD_DEMOS |
QML_GALLERY | Build the QML based gallery. | ON | Depends on BUILD_DEMOS |
FRAMEWORKS | Build as Frameworks (EXPERMANTAL) | OFF | Mac Os Only |
FORMATS | Build ff7tkFormats | ON | |
UTILS | Build ff7tkUtils. | ON | zlib |
WIDGETS | Build ff7tkWidgets. | ON |
Example cmake configuration. cmake -S. -Bbuild -DWIDGET_GALLERY=ON -DCMAKE_INSTALL_PREFIX=<INSTALLPREFIX>
After Configuring you Should be able to run make to build all targets.
cmake --build build
To test installation run DESTDIR=<installDIR> cmake --install build
to install into <installDir>/<CMAKE_INSTALL_PREFIX>
Running cmake --install build
will install to the CMAKE_INSTALL_PREFIX
ff7tk can generate several packages using cpack To generate packages build the package
or package_source
target example cmake --build build --target package package_source
would generate both package and package source packages. Installing the Qt Installer Framework will allow ff7tk to create a QtIFW installer.
After installing you can use in your cmake project by simply adding find_project(ff7tk)
link with ff7tk::ff7tk
Additional Modules include
ff7tkFormats
link with ff7tk::ff7tkFormats
ff7tkUtils
link with ff7tk::ff7tkUtils
ff7tkWidgets
link with ff7tk::ff7tkWidgets
For QMake you can use the pkgconfig provided by the system config +=link_pkgconfig
PKGCONFIG += ff7tk
include the file ff7tkAbout.h and use the function(s) ff7tk_version(), ff7tk_revision() or ff7tk_qt_version()
In addition to ff7tk's language files your application should also ship the qt_base_<lang>.qm these are required to translate strings from inside Qt libraries.
When using ff7tk your project needs to ship the libraries ff7tk needs to run its recommened to run windepoyqt / macdeployqt on the ff7tk libs being used when you pack your application to be sure to get all the libs needed are deployed.