1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-30 17:20:26 +02:00

Move some logic out of the tomahawk_add_plugin macro to a tomahawk_add_library macro

This commit is contained in:
Dominik Schmidt
2013-06-30 15:59:29 +02:00
parent ae13f92885
commit 1f66489755
5 changed files with 30 additions and 47 deletions

View File

@@ -1,13 +1,18 @@
include( ../TomahawkUse.cmake )
setup_qt()
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/libtomahawk )
include_directories( ${CMAKE_CURRENT_LIST_DIR}/libtomahawk )
file(GLOB SUBDIRECTORIES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*")
# library
add_subdirectory(libtomahawk)
foreach(SUBDIRECTORY ${SUBDIRECTORIES})
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${SUBDIRECTORY}" AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${SUBDIRECTORY}/CMakeLists.txt")
message(STATUS "build: " ${SUBDIRECTORY})
add_subdirectory( ${SUBDIRECTORY} )
endif()
endforeach()
# plugins
add_subdirectory(accounts)
add_subdirectory(infoplugins)
# application
add_subdirectory(tomahawk)
add_subdirectory(crashreporter)

View File

@@ -1,4 +1,3 @@
include( ${CMAKE_CURRENT_LIST_DIR}/../../TomahawkAddPlugin.cmake )
file(GLOB SUBDIRECTORIES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*")
foreach(SUBDIRECTORY ${SUBDIRECTORIES})