source: trunk/applications/CMakeLists.txt @ 1822

Revision 1812, 1.8 KB checked in by Freddie Akeroyd, 4 months ago (diff)
  • Create proper nxconfig.h from CMake
  • Build NXvalidate in CMake

Refs #327

Line 
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
30find_package(LibXml2)
31
32# Recurse into the subdirectories.
33
34add_subdirectory (NXbrowse)
35add_subdirectory (NXdir)
36add_subdirectory (NXconvert)
37
38if (BUILD_FORTRAN_BINDINGS AND CMAKE_Fortran_COMPILER_WORKS)
39    add_subdirectory (NXdump)
40endif()
41
42if (HAVE_MXML)
43add_subdirectory (nxingest)
44endif(HAVE_MXML)
45
46add_subdirectory (NXtraverse)
47
48if(Java_JAVAC_EXECUTABLE AND ANT_FOUND)
49    add_subdirectory (NXvalidate)
50endif(Java_JAVAC_EXECUTABLE AND ANT_FOUND)
51
52if(LIBXML2_FOUND)
53    add_subdirectory (NXsummary)
54    add_subdirectory (NXtranslate)
55endif(LIBXML2_FOUND)
56
57install (PROGRAMS nxdiff DESTINATION bin COMPONENT Runtime)
58
Note: See TracBrowser for help on using the repository browser.