From f7d430d77c2fb565c6b456a80e789d4c58948bca Mon Sep 17 00:00:00 2001 From: Lucas Lira Gomes Date: Wed, 26 Sep 2012 13:20:40 -0300 Subject: [PATCH] * Install headers for libtomahawk --- src/libtomahawk/CMakeLists.txt | 60 ++++++++++++++++++++++++++++++++++ src/libtomahawk/Config.h.in | 29 ++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 src/libtomahawk/Config.h.in diff --git a/src/libtomahawk/CMakeLists.txt b/src/libtomahawk/CMakeLists.txt index 2d03013ed..aa1d69ca7 100644 --- a/src/libtomahawk/CMakeLists.txt +++ b/src/libtomahawk/CMakeLists.txt @@ -472,3 +472,63 @@ INSTALL( TARGETS tomahawklib LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) + +# Install header files +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.h.in + ${CMAKE_CURRENT_SOURCE_DIR}/config.h) + +file( GLOB rootHeaders "*.h" ) +file( GLOB accountsHeaders "accounts/*.h" ) +file( GLOB accountsLastfmHeaders "accounts/lastfm/*.h" ) +file( GLOB accountsSpotifyHeaders "accounts/spotify/*.h" ) +file( GLOB audioHeaders "audio/*.h" ) +file( GLOB contextHeaders "context/*.h" ) +file( GLOB contextPagesHeaders "context/pages/*.h" ) +file( GLOB databaseHeaders "database/*.h" ) +file( GLOB filemetadataHeaders "filemetadata/*.h" ) +file( GLOB filemetadataTaghandlersHeaders "filemetadata/taghandlers/*.h" ) +file( GLOB infobarHeaders "infobar/*.h" ) +file( GLOB infosystemHeaders "infosystem/*.h" ) +file( GLOB jobviewHeaders "jobview/*.h" ) +file( GLOB networkHeaders "network/*.h" ) +file( GLOB playlistHeaders "playlist/*.h" ) +file( GLOB playlistDynamicHeaders "playlist/dynamic/*.h" ) +file( GLOB playlistDynamicDatabaseHeaders "playlist/dynamic/database/*.h" ) +file( GLOB playlistDynamicEchonestHeaders "playlist/dynamic/echonest/*.h" ) +file( GLOB playlistDynamicWidgetsHeaders "playlist/dynamic/widgets/*.h" ) +file( GLOB resolversHeaders "resolvers/*.h" ) +file( GLOB sipHeaders "sip/*.h" ) +file( GLOB thirdpartyKdsingleapplicationguardHeaders "thirdparty/kdsingleapplicationguard/*.h" ) +file( GLOB thirdpartyQocoaHeaders "thirdparty/Qocoa/*.h" ) +file( GLOB utilsHeaders "utils/*.h" ) +file( GLOB widgetsHeaders "widgets/*.h" ) +file( GLOB widgetsInfowidgetsHeaders "widgets/infowidgets/*.h" ) +file( GLOB widgetsSearchlineeditHeaders "widgets/searchlineedit/*.h" ) + +install( FILES ${rootHeaders} DESTINATION include/libtomahawk ) +install( FILES ${accountsHeaders} DESTINATION include/libtomahawk/accounts ) +install( FILES ${accountsLastfmHeaders} DESTINATION include/libtomahawk/accounts/lastfm ) +install( FILES ${accountsSpotifyHeaders} DESTINATION include/libtomahawk/accounts/spotify ) +install( FILES ${audioHeaders} DESTINATION include/libtomahawk/audio ) +install( FILES ${contextHeaders} DESTINATION include/libtomahawk/context ) +install( FILES ${contextPagesHeaders} DESTINATION include/libtomahawk/context/pages ) +install( FILES ${databaseHeaders} DESTINATION include/libtomahawk/database ) +install( FILES ${filemetadataHeaders} DESTINATION include/libtomahawk/filemetadata ) +install( FILES ${filemetadataTaghandlersHeaders} DESTINATION include/libtomahawk/filemetadata/taghandlers ) +install( FILES ${infobarHeaders} DESTINATION include/libtomahawk/infobar ) +install( FILES ${infosystemHeaders} DESTINATION include/libtomahawk/infosystem ) +install( FILES ${jobviewHeaders} DESTINATION include/libtomahawk/jobview ) +install( FILES ${networkHeaders} DESTINATION include/libtomahawk/network ) +install( FILES ${playlistHeaders} DESTINATION include/libtomahawk/playlist ) +install( FILES ${playlistDynamicHeaders} DESTINATION include/libtomahawk/playlist/dynamic ) +install( FILES ${playlistDynamicDatabaseHeaders} DESTINATION include/libtomahawk/playlist/dynamic/database ) +install( FILES ${playlistDynamicEchonestHeaders} DESTINATION include/libtomahawk/playlist/dynamic/echonest ) +install( FILES ${playlistDynamicWidgetsHeaders} DESTINATION include/libtomahawk/playlist/dynamic/widgets ) +install( FILES ${resolversHeaders} DESTINATION include/libtomahawk/resolvers ) +install( FILES ${sipHeaders} DESTINATION include/libtomahawk/sip ) +install( FILES ${thirdpartyKdsingleapplicationguardHeaders} DESTINATION include/libtomahawk/thirdparty/kdsingleapplicationguard ) +install( FILES ${thirdpartyQocoaHeaders} DESTINATION include/libtomahawk/thirdparty/Qocoa ) +install( FILES ${utilsHeaders} DESTINATION include/libtomahawk/utils ) +install( FILES ${widgetsHeaders} DESTINATION include/libtomahawk/widgets ) +install( FILES ${widgetsInfowidgetsHeaders} DESTINATION include/libtomahawk/widgets/infowidgets ) +install( FILES ${widgetsSearchlineeditHeaders} DESTINATION include/libtomahawk/widgets/searchlineedit ) diff --git a/src/libtomahawk/Config.h.in b/src/libtomahawk/Config.h.in new file mode 100644 index 000000000..1b1eb4af3 --- /dev/null +++ b/src/libtomahawk/Config.h.in @@ -0,0 +1,29 @@ +#ifndef CONFIG_H_IN +#define CONFIG_H_IN + +#cmakedefine TOMAHAWK_ORGANIZATION_NAME "${TOMAHAWK_ORGANIZATION_NAME}" +#cmakedefine TOMAHAWK_ORGANIZATION_DOMAIN "${TOMAHAWK_ORGANIZATION_DOMAIN}" +#cmakedefine TOMAHAWK_APPLICATION_NAME "${TOMAHAWK_APPLICATION_NAME}" +#cmakedefine TOMAHAWK_VERSION "${TOMAHAWK_VERSION}" + +#cmakedefine DEBUG_BUILD + +#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" +#define CMAKE_INSTALL_FULL_LIBEXECDIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}" +#define CMAKE_SYSTEM "${CMAKE_SYSTEM}" + +#cmakedefine LION +#cmakedefine SNOW_LEOPARD +#cmakedefine LEOPARD +#cmakedefine HAVE_SPARKLE +#cmakedefine HAVE_THUMBBUTTON + +#cmakedefine WITH_BREAKPAD +#cmakedefine WITH_CRASHREPORTER +#cmakedefine WITH_BINARY_ATTICA + + +#cmakedefine LIBLASTFM_FOUND +#cmakedefine QCA2_FOUND + +#endif // CONFIG_H_IN