| 1 |
if(QT_VERSION EQUAL 6) |
| 2 |
find_package(Qt6 COMPONENTS Widgets Network REQUIRED) |
| 3 |
endif() |
| 4 |
|
| 5 |
add_library(MoleQueue) |
| 6 |
|
| 7 |
avogadro_headers(MoleQueue |
| 8 |
batchjob.h |
| 9 |
inputgenerator.h |
| 10 |
inputgeneratordialog.h |
| 11 |
inputgeneratorwidget.h |
| 12 |
molequeuedialog.h |
| 13 |
molequeuemanager.h |
| 14 |
molequeuequeuelistmodel.h |
| 15 |
molequeuewidget.h |
| 16 |
) |
| 17 |
|
| 18 |
target_sources(MoleQueue PRIVATE |
| 19 |
batchjob.cpp |
| 20 |
inputgenerator.cpp |
| 21 |
inputgeneratordialog.cpp |
| 22 |
inputgeneratorwidget.cpp |
| 23 |
molequeuedialog.cpp |
| 24 |
molequeuemanager.cpp |
| 25 |
molequeuequeuelistmodel.cpp |
| 26 |
molequeuewidget.cpp |
| 27 |
client/client.cpp |
| 28 |
client/jobobject.cpp |
| 29 |
client/jsonrpcclient.cpp |
| 30 |
) |
| 31 |
|
| 32 |
set(UIS |
| 33 |
inputgeneratordialog.ui |
| 34 |
inputgeneratorwidget.ui |
| 35 |
molequeuedialog.ui |
| 36 |
molequeuewidget.ui |
| 37 |
) |
| 38 |
qt_wrap_ui(UI_SOURCES ${UIS}) |
| 39 |
target_sources(MoleQueue PRIVATE ${UI_SOURCES}) |
| 40 |
|
| 41 |
avogadro_add_library(MoleQueue ${HEADERS} ${SOURCES}) |
| 42 |
set_target_properties(MoleQueue PROPERTIES AUTOMOC TRUE) |
| 43 |
target_link_libraries(MoleQueue PUBLIC Avogadro::QtGui Qt::Widgets Qt::Network) |