diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-01-07 17:49:56 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-01-07 17:49:56 +0000 |
| commit | 1a13270970c4194a0f3c306c0a9bb8e72e42c1fd (patch) | |
| tree | 891a6bb950a490c6532d8b7e6c5c2d6deb51e269 /src/plugins/General/library/CMakeLists.txt | |
| parent | 26c0acfe811b4494d4aeb0763362eedddcff4806 (diff) | |
| download | qmmp-1a13270970c4194a0f3c306c0a9bb8e72e42c1fd.tar.gz qmmp-1a13270970c4194a0f3c306c0a9bb8e72e42c1fd.tar.bz2 qmmp-1a13270970c4194a0f3c306c0a9bb8e72e42c1fd.zip | |
updated cmake files
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9619 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/library/CMakeLists.txt')
| -rw-r--r-- | src/plugins/General/library/CMakeLists.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/plugins/General/library/CMakeLists.txt b/src/plugins/General/library/CMakeLists.txt new file mode 100644 index 000000000..bcc9f3e70 --- /dev/null +++ b/src/plugins/General/library/CMakeLists.txt @@ -0,0 +1,35 @@ +project(liblibrary) + +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +# libqmmpui & libqmmp +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../) +link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmpui) +link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmp) + +SET(liblibrary_SRCS + library.cpp + libraryfactory.cpp + librarymodel.cpp + librarywidget.cpp + settingsdialog.cpp +) + +SET(liblibrary_RCCS translations/translations.qrc) + +QT5_ADD_RESOURCES(liblibrary_RCC_SRCS ${liblibrary_RCCS}) + +# user interface +SET(liblibrary_UIS + librarywidget.ui + settingsdialog.ui +) + +QT5_WRAP_UI(liblibrary_UIS_H ${liblibrary_UIS}) +# Don't forget to include output directory, otherwise +# the UI file won't be wrapped! +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +ADD_LIBRARY(library MODULE ${liblibrary_SRCS} ${liblibrary_UIS_H} ${liblibrary_RCC_SRCS}) +target_link_libraries(library Qt5::Widgets Qt5::Sql Qt5::Concurrent libqmmpui libqmmp) +install(TARGETS library DESTINATION ${PLUGIN_DIR}/General) |
