diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-10-14 17:13:54 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-10-14 17:13:54 +0000 |
| commit | edcf1ca68a32c85e18ac500990bd28e93e4be2e5 (patch) | |
| tree | 85b44651b7ba22d5829519c0ef712de8f7622f3b /src/plugins/General/covermanager/CMakeLists.txt | |
| parent | 43afdc9a57c17e39b07346b093d82c7f8ce281b2 (diff) | |
| download | qmmp-edcf1ca68a32c85e18ac500990bd28e93e4be2e5.tar.gz qmmp-edcf1ca68a32c85e18ac500990bd28e93e4be2e5.tar.bz2 qmmp-edcf1ca68a32c85e18ac500990bd28e93e4be2e5.zip | |
added cover manager files
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1315 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/covermanager/CMakeLists.txt')
| -rw-r--r-- | src/plugins/General/covermanager/CMakeLists.txt | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/plugins/General/covermanager/CMakeLists.txt b/src/plugins/General/covermanager/CMakeLists.txt new file mode 100644 index 000000000..f7196353a --- /dev/null +++ b/src/plugins/General/covermanager/CMakeLists.txt @@ -0,0 +1,67 @@ +project(libcovermanager) + +cmake_minimum_required(VERSION 2.4.7) + + +SET(QT_USE_QTNETWORK TRUE) +INCLUDE(FindQt4) + +include(${QT_USE_FILE}) + +if(COMMAND cmake_policy) +cmake_policy(SET CMP0003 NEW) +endif(COMMAND cmake_policy) + +# qt plugin +ADD_DEFINITIONS( -Wall ) +ADD_DEFINITIONS(${QT_DEFINITIONS}) +ADD_DEFINITIONS(-DQT_PLUGIN) +ADD_DEFINITIONS(-DQT_NO_DEBUG) +ADD_DEFINITIONS(-DQT_SHARED) +ADD_DEFINITIONS(-DQT_THREAD) + +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +# libqmmpui +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../) +link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmpui) +#libqmmp +link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmp) + +SET(libcovermanager_SRCS + coverwidget.cpp + covermanager.cpp + coverwindow.cpp + covermanagerfactory.cpp +) + +SET(libcovermanager_MOC_HDRS + coverwidget.h + covermanager.h + coverwindow.h + covermanagerfactory.h +) + +SET(libcovermanager_RCCS translations/translations.qrc) + +QT4_ADD_RESOURCES(libcovermanager_RCC_SRCS ${libcovermanager_RCCS}) + +QT4_WRAP_CPP(libcovermanager_MOC_SRCS ${libcovermanager_MOC_HDRS}) + +# user interface + + +SET(libcovermanager_UIS + coverwindow.ui +) + +QT4_WRAP_UI(libcovermanager_UIS_H ${libcovermanager_UIS}) +# Don't forget to include output directory, otherwise +# the UI file won't be wrapped! +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +ADD_LIBRARY(covermanager MODULE ${libcovermanager_SRCS} ${libcovermanager_MOC_SRCS} ${libcovermanager_UIS_H} + ${libcovermanager_RCC_SRCS}) +add_dependencies(covermanager qmmpui) +target_link_libraries(covermanager ${QT_LIBRARIES} -lqmmpui -lqmmp) +install(TARGETS covermanager DESTINATION ${LIB_DIR}/qmmp/General) |
