How to create libraries in KDE Frameworks 5

Mario Bensi (Nef) mbensi at ipsquad.net
Mon Aug 8 23:53:18 BST 2011


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 install, you need to use CMAKE_CURRENT_BINARY_DIR.
And you have something like that: 

install(FILES 
  ${CMAKE_CURRENT_BINARY_DIR}/itemmodels_export.h
)

Regards,
Mario




More information about the kde-core-devel mailing list