Re: How to create libraries in KDE Frameworks 5

2011-08-10 Thread Stephen Kelly
Stephen Kelly wrote: > After using kde4_add_library the macro generate_export_header should be > used. > > kde4_add_library(itemmodels ...) > generate_export_header(itemmodels > DEPRECATED_NAME KDE_DEPRECATED > ) Just fyi, Instead of this, use only kf5_add_library. I've already ported existing

Re: How to create libraries in KDE Frameworks 5

2011-08-09 Thread Mario Bensi (Nef)
Hi, > The itemmodels_export.h file is created in the build directory instead of > being checked in. That means that it must be installed with a referenece to > the build dir, like > > install(FILES > ${CMAKE_CURRENT_BUILD_DIR}/itemmodels_export.h > ) > I think there is a mistake here to

How to create libraries in KDE Frameworks 5

2011-08-08 Thread Stephen Kelly
Hi, I've just pushed an update to the frameworks branch in kdelibs.git. I moved some classes from kdeui/itemviews to tier1/itemmodels/ and added them to the buildsystem in a library. Just for the need of starting somewhere I created a top-level directory called tier1 to hold the library. As w