|
Cutelee 6.1.0
|
Several porting steps are necessary when porting code from Cutelee 0.5 to Cutelee 5.0 and later.
The cutelee_add_plugin CMake macro has been removed. Users should now use the CMake command add_library(MODULE), link to the Cutelee Templates library, and use the cutelee_adjust_plugin_name macro with the created target.
The Cutelee_USE_FILE is obsolete and has been removed. Users should remove code such as
include(${Cutelee_USE_FILE})
from their buildsystems.
The CMake packages shipped with Cutelee contain IMPORTED targets which should be used with the target_link_libraries command. Variables such as Cutelee_TEMPLATES_LIBRARIES are no longer provided.
Idiomatic use of Cutelee in the buildsystem is now similar to:
find_package(Cutelee REQUIRED) add_executable(main main.cpp) target_link_libraries(main Cutelee::Templates )
For Cutelee 6.0 specify the version on the find_package command:
find_package(Cutelee 6.0 REQUIRED)
User code should simply remove the use of the macro.
The virtual method render on Cutelee::Node is now const. User code which creates custom plugins and overrides the render method must be updated to add the const too.
Users of LocalizedFileSystemTemplateLoader can now use FileSystemTemplateLoader instead.
Replace uses of FileSystemTemplateLoader::Ptr with std::shared_ptr<FileSystemTemplateLoader> for example.