mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 20:00:13 +02:00
Move Tomahawk application info into top-level CMakeLists.txt
This commit is contained in:
@@ -1,6 +1,16 @@
|
|||||||
PROJECT( tomahawk )
|
PROJECT( tomahawk )
|
||||||
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
|
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
|
||||||
|
|
||||||
|
###
|
||||||
|
### Tomahawk application info
|
||||||
|
###
|
||||||
|
SET( ORGANIZATION_NAME "Tomahawk" )
|
||||||
|
SET( ORGANIZATION_DOMAIN "tomahawk-player.org" )
|
||||||
|
SET( APPLICATION_NAME "Player" )
|
||||||
|
SET( VERSION "0.0.0" )
|
||||||
|
|
||||||
|
|
||||||
|
# set paths
|
||||||
SET( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_SOURCE_DIR}/CMakeModules" )
|
SET( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_SOURCE_DIR}/CMakeModules" )
|
||||||
SET( THIRDPARTY_DIR ${CMAKE_SOURCE_DIR}/thirdparty )
|
SET( THIRDPARTY_DIR ${CMAKE_SOURCE_DIR}/thirdparty )
|
||||||
|
|
||||||
|
@@ -1,6 +1,12 @@
|
|||||||
#ifndef CONFIG_H_IN
|
#ifndef CONFIG_H_IN
|
||||||
#define CONFIG_H_IN
|
#define CONFIG_H_IN
|
||||||
|
|
||||||
|
#cmakedefine ORGANIZATION_NAME "${ORGANIZATION_NAME}"
|
||||||
|
#cmakedefine ORGANIZATION_DOMAIN "${ORGANIZATION_DOMAIN}"
|
||||||
|
#cmakedefine APPLICATION_NAME "${APPLICATION_NAME}"
|
||||||
|
#cmakedefine VERSION "${VERSION}"
|
||||||
|
|
||||||
|
|
||||||
#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
|
#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
|
||||||
|
|
||||||
#cmakedefine SNOW_LEOPARD
|
#cmakedefine SNOW_LEOPARD
|
||||||
|
@@ -146,10 +146,10 @@ TomahawkApp::TomahawkApp( int& argc, char *argv[] )
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
qDebug() << "TomahawkApp thread:" << this->thread();
|
qDebug() << "TomahawkApp thread:" << this->thread();
|
||||||
setOrganizationName( "Tomahawk" );
|
setOrganizationName( QLatin1String( ORGANIZATION_NAME ) );
|
||||||
setOrganizationDomain( "tomahawk.org" );
|
setOrganizationDomain( QLatin1String( ORGANIZATION_DOMAIN ) );
|
||||||
setApplicationName( "Player" );
|
setApplicationName( QLatin1String( APPLICATION_NAME ) );
|
||||||
setApplicationVersion( "0.0.0" );
|
setApplicationVersion( QLatin1String( VERSION ) );
|
||||||
registerMetaTypes();
|
registerMetaTypes();
|
||||||
setupLogfile();
|
setupLogfile();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user