1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

Revert "Cleanup config setup to make sure defines are set before config.h is generated."

This reverts commit 16b4cb93d8.
This commit is contained in:
Dominik Schmidt
2015-09-06 21:23:24 +02:00
parent dc1ff80bfc
commit 37512055e1
8 changed files with 15 additions and 9 deletions

View File

@@ -6,16 +6,9 @@ add_definitions( -DDLLEXPORT_PRO )
add_definitions( -DQT_SHAREDPOINTER_TRACK_POINTERS )
add_definitions( -DPORTFWDDLLEXPORT_STATIC )
IF( WIN32 )
INCLUDE( "CMakeLists.win32.cmake" )
ENDIF( WIN32 )
IF( UNIX )
INCLUDE( "CMakeLists.unix.cmake" )
ENDIF( UNIX )
configure_file(Config.h.in
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../tomahawk/Config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)
configure_file(TomahawkVersion.h.in
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../tomahawk/TomahawkVersion.h.in
${CMAKE_CURRENT_BINARY_DIR}/TomahawkVersion.h)
set( libGuiSources

View File

@@ -109,6 +109,13 @@ INCLUDE_DIRECTORIES(
SET( OS_SPECIFIC_LINK_LIBRARIES "" )
IF( WIN32 )
INCLUDE( "CMakeLists.win32.cmake" )
ENDIF( WIN32 )
IF( UNIX )
INCLUDE( "CMakeLists.unix.cmake" )
ENDIF( UNIX )
IF( APPLE )
SET( CMAKE_LINKER_FLAGS "-headerpad_max_install_names ${CMAKE_LINKER_FLAGS}" )
@@ -123,6 +130,12 @@ ENDIF( QCA2_FOUND )
INCLUDE(GNUInstallDirs)
# currently only in libtomahawk, we might want to properly split what's in which config file
# configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.h.in
# ${CMAKE_CURRENT_BINARY_DIR}/config.h)
# configure_file(${CMAKE_CURRENT_SOURCE_DIR}/TomahawkVersion.h.in
# ${CMAKE_CURRENT_BINARY_DIR}/TomahawkVersion.h)
# translations
include( ${CMAKE_SOURCE_DIR}/lang/translations.cmake )
add_tomahawk_translations( ${TOMAHAWK_TRANSLATION_LANGUAGES} )