Imagine++
Usage

Using CMake

CMake philosophy is the following:

The 'test' sub-directory of the Imagine++ installation directory contains useful examples of such files. As an example, let's compile the Graphics tests.

The CMakeLists.txt (<Imagine_DIR>/test/Graphics/CMakeLists.txt) file of the Graphics test is simple, and your own should follow this model:

cmake_minimum_required(VERSION 3.12)
project(ImagineGraphicsTests)
find_package(Imagine REQUIRED COMPONENTS Graphics)
add_executable(ImagineGraphicsExample example.cpp)
target_link_libraries(ImagineGraphicsExample PRIVATE Imagine::Graphics)
add_executable(ImagineGraphicsTest test.cpp)
target_link_libraries(ImagineGraphicsTest PRIVATE Imagine::Graphics)

Two executables are defined, ImagineGraphicsExample and ImagineGraphicsTest, built respectively from example.cpp and tesp.cpp, each of them using the Graphics module. The first few lines are mandatory for any Imagine++ project: they check the Imagine_DIR environment variable, which is mandatory to use Imagine++ (see Introduction).

Finally, if an executable depends on more than one C++ source, just add them as arguments to add_executable separated by whitespace. See other tests and refer to CMake own manual for further information.

QtCreator (all platforms)

QtCreator works on all platforms

From a terminal (all platforms)