How to build & install a simple ROOT library with cmake?

OK I seem to have found a solution which works (with ROOT v5.34/23):

cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

project(rootLib)

find_package(ROOT REQUIRED)
include(StandaloneBuild)
include(RootInstallDirs)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/inc)

ROOT_STANDARD_LIBRARY_PACKAGE(rootLib DEPENDENCIES ${ROOT_LIBRARIES})

as long as the source files end in ‘.cxx’ (pity there isn’t an option to change the default extension).
Now I’ll try the exact same with ROOT v6.02…