For the required and recommended CMake Version please have a look at .
/doc/README.txt.
Build the examples
Using the supplied batch file (Windows only)
- Make sure that the path to your CMake executable is in your
PATH
variable.
- Open the Visual Studio Developer Command Prompt from your start menu (under "Microsoft Visual Studio <Version>/Visual Studio Tools")
- From the command prompt launch the
build_examples.bat
file in the ADTF installation directory
- Follow the instructions
Manually (Windows and Linux)
- Attention
- If you paste a path from the clipboard into CMake GUI, make sure that you replace all backslashes with forward slashes (paste it, then press "..." and ok)!
- Launch CMake GUI
- Set the source directory to the installation directory of ADTF (e.g C:/Program Files/ADTF/3.0.0).
- Set the build/binary directory to a NEW and different directory (e.g. C:/Work/adtf-build)
- Press 'Configure'.
- Click 'Yes' when CMake asks to create the build directory.
- Select your compiler in the dialog that appears now and press 'Finish'.
- You will now get some red values in the list. Red does not mean wrong but new!
- Make sure that
ADTF_DIR
is correctly set (e.g C:/Program Files/ADTF/3.0.0)
- Press 'Configure' again.
- Set
CMAKE_INSTALL_PREFIX
to the installation directory of ADTF (e.g C:/Program Files/ADTF/3.0.0). You can choose any directory you like, but keep in mind that you have to add the plugins to the .adtfsystem defintion file of ADTF later on.
- Press 'Configure' again.
- You should now have everything ready and no red values.
- On Linux make sure that you set
CMAKE_BUILD_TYPE
to either "Debug" or "RelWithDebInfo". If you get an empty ADTF_FONTCONFIG_LIBRARY
, please install the fontconfig development package of your Linux distribution.
- Press 'Generate'. CMake succeeds with 'Generating done'
- Now go to the build directory:
- On Windows open the adtf_examples solution with Visual Studio and build it. Don't forget to build the
INSTALL
project after everything has been built.
- On Linux type 'make install' in the build directory.
- Done. The installation of the ADTF examples can be found in the
CMAKE_INSTALL_PREFIX
.