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:
@@ -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)
|
@@ -1,4 +1,3 @@
|
||||
include( ${CMAKE_CURRENT_LIST_DIR}/../../TomahawkAddPlugin.cmake )
|
||||
|
||||
file(GLOB SUBDIRECTORIES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*")
|
||||
foreach(SUBDIRECTORY ${SUBDIRECTORIES})
|
||||
|
Reference in New Issue
Block a user