| 1 | ## Process this file with cmake |
|---|
| 2 | #==================================================================== |
|---|
| 3 | # NeXus - Neutron & X-ray Common Data Format |
|---|
| 4 | # |
|---|
| 5 | # CMakeLists for building the NeXus library and applications. |
|---|
| 6 | # |
|---|
| 7 | # Copyright (C) 2010 Stephen Rankin |
|---|
| 8 | # |
|---|
| 9 | # This library is free software; you can redistribute it and/or |
|---|
| 10 | # modify it under the terms of the GNU Lesser General Public |
|---|
| 11 | # License as published by the Free Software Foundation; either |
|---|
| 12 | # version 2 of the License, or (at your option) any later version. |
|---|
| 13 | # |
|---|
| 14 | # This library is distributed in the hope that it will be useful, |
|---|
| 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 17 | # Lesser General Public License for more details. |
|---|
| 18 | # |
|---|
| 19 | # You should have received a copy of the GNU Lesser General Public |
|---|
| 20 | # License along with this library; if not, write to the Free |
|---|
| 21 | # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
|---|
| 22 | # MA 02111-1307 USA |
|---|
| 23 | # |
|---|
| 24 | # For further information, see <http://www.nexusformat.org> |
|---|
| 25 | # |
|---|
| 26 | # |
|---|
| 27 | #==================================================================== |
|---|
| 28 | |
|---|
| 29 | #The LibXML 2 Libraries |
|---|
| 30 | find_package(LibXml2) |
|---|
| 31 | |
|---|
| 32 | # Recurse into the subdirectories. |
|---|
| 33 | |
|---|
| 34 | add_subdirectory (NXbrowse) |
|---|
| 35 | add_subdirectory (NXdir) |
|---|
| 36 | add_subdirectory (NXconvert) |
|---|
| 37 | |
|---|
| 38 | if (BUILD_FORTRAN_BINDINGS AND CMAKE_Fortran_COMPILER_WORKS) |
|---|
| 39 | add_subdirectory (NXdump) |
|---|
| 40 | endif() |
|---|
| 41 | |
|---|
| 42 | if (HAVE_MXML) |
|---|
| 43 | add_subdirectory (nxingest) |
|---|
| 44 | endif(HAVE_MXML) |
|---|
| 45 | |
|---|
| 46 | add_subdirectory (NXtraverse) |
|---|
| 47 | |
|---|
| 48 | if(Java_JAVAC_EXECUTABLE AND ANT_FOUND) |
|---|
| 49 | add_subdirectory (NXvalidate) |
|---|
| 50 | endif(Java_JAVAC_EXECUTABLE AND ANT_FOUND) |
|---|
| 51 | |
|---|
| 52 | if(LIBXML2_FOUND) |
|---|
| 53 | add_subdirectory (NXsummary) |
|---|
| 54 | add_subdirectory (NXtranslate) |
|---|
| 55 | endif(LIBXML2_FOUND) |
|---|
| 56 | |
|---|
| 57 | install (PROGRAMS nxdiff DESTINATION bin COMPONENT Runtime) |
|---|
| 58 | |
|---|