| 1 |
# Download the executable if we are not to use the system one |
| 2 |
if(APPLE OR WIN32 OR INSTALL_BUNDLE_FILES) |
| 3 |
option(USE_SYSTEM_GENXRDPATTERN "Use the system genxrdpattern" OFF) |
| 4 |
else() |
| 5 |
option(USE_SYSTEM_GENXRDPATTERN "Use the system genxrdpattern" ON) |
| 6 |
endif() |
| 7 |
mark_as_advanced(USE_SYSTEM_GENXRDPATTERN) |
| 8 |
|
| 9 |
if(NOT USE_SYSTEM_GENXRDPATTERN) |
| 10 |
include(DownloadGenXrdPattern) |
| 11 |
DownloadGenXrdPattern() |
| 12 |
endif() |
| 13 |
|
| 14 |
set(plotxrd_srcs |
| 15 |
plotxrd.cpp |
| 16 |
xrdoptionsdialog.cpp |
| 17 |
) |
| 18 |
|
| 19 |
set(plotxrd_uis |
| 20 |
xrdoptionsdialog.ui |
| 21 |
) |
| 22 |
|
| 23 |
avogadro_plugin(PlotXrd |
| 24 |
"Use ObjCryst++ to create an XRD plot." |
| 25 |
ExtensionPlugin |
| 26 |
plotxrd.h |
| 27 |
PlotXrd |
| 28 |
"${plotxrd_srcs}" |
| 29 |
"${plotxrd_uis}" |
| 30 |
) |
| 31 |
|
| 32 |
# target_link_libraries(PlotXrd PRIVATE Avogadro::Vtk) |