- Timestamp:
- 04/02/12 23:07:45 (4 months ago)
- File:
-
- 1 edited
-
trunk/src/CMakeLists.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/CMakeLists.txt
r1794 r1811 27 27 #==================================================================== 28 28 29 add_definitions(-DIN_NEXUS_LIBRARY ${ HDF5_DEFINITIONS} ${HDF5_CPP} ${HDF4_CPP} ${MXML_CPP} ${NX_CPP})29 add_definitions(-DIN_NEXUS_LIBRARY ${NX_CPP}) 30 30 31 31 set (NAPISRC napi.c napiu.c nxstack.c nxstack.h stptok.c nxdataset.c nxdataset.h nx_stptok.h) 32 32 33 if (H DF4_FOUND)33 if (HAVE_HDF4) 34 34 set (NAPISRC ${NAPISRC} napi4.c) 35 endif (HDF4_FOUND) 35 add_definitions(-DHDF4 ${HDF4_DEFINITIONS} ${HDF4_CPP}) 36 include_directories(${HDF4_INCLUDE_DIRS}) 37 endif (HAVE_HDF4) 36 38 37 if (H DF5_FOUND)39 if (HAVE_HDF5) 38 40 set (NAPISRC ${NAPISRC} napi5.c) 39 endif (HDF5_FOUND) 41 add_definitions(-DHDF5 ${HDF5_DEFINITIONS} ${HDF5_CPP}) 42 include_directories(${HDF5_INCLUDE_DIRS}) 43 endif (HAVE_HDF5) 44 45 if(HAVE_MXML) 46 set (NAPISRC ${NAPISRC} nxxml.c nxio.c nxio.h) 47 add_definitions(-DNXXML ${MXML_DEFINITIONS} ${MXML_CPP}) 48 include_directories(${MXML_INCLUDE_DIRS}) 49 endif(HAVE_MXML) 40 50 41 51 # need napi_exports2.c on win32 but not win64 … … 48 58 endif (WIN32) 49 59 50 if(HAVE_XML)51 set (NAPISRC ${NAPISRC} nxxml.c nxio.c nxio.h)52 endif(HAVE_XML)53 54 set (NAPISRC ${NAPISRC} nxxml.c nxio.c nxio.h)55 56 60 set_property(SOURCE ${NAPISRC} APPEND PROPERTY COMPILE_FLAGS ${NX_CFLAGS}) 57 61 … … 59 63 60 64 set (NX_LIBS ${HDF4_LINK} ${READLINE_LINK} ${M_LINK} ${DL_LINK} ${PTHREAD_LINK} ${DF_LINK} 61 ${TERMCAP_LINK} ${HISTORY_LINK} ${JPEG_LIBRARIES} ${ ZIP_LIB} ${SZIP_LIB})65 ${TERMCAP_LINK} ${HISTORY_LINK} ${JPEG_LIBRARIES} ${SZIP_LIBRARIES} ${ZLIB_LIBRARIES} ) 62 66 #if (MINGW_MSYS) 63 67 # set (MINGW_SRC napi_exports.c napi_exports2.c napi_exports.h) … … 82 86 set_target_properties(NeXus_Static_Library PROPERTIES OUTPUT_NAME NeXusStatic) 83 87 84 target_link_libraries(NeXus_Static_Library ${HDF5_STATIC_LIBRARIES} ${HDF4_STATIC_LIBRARIES} ${ NX_LIBS})88 target_link_libraries(NeXus_Static_Library ${HDF5_STATIC_LIBRARIES} ${HDF4_STATIC_LIBRARIES} ${MXML_STATIC_LIBRARIES} ${NX_LIBS}) 85 89 86 90 #Make NeXus Shared Library … … 106 110 endif (${CMAKE_SYSTEM_NAME} MATCHES "Windows") 107 111 108 target_link_libraries(NeXus_Shared_Library ${HDF5_SHARED_LIBRARIES} ${HDF4_SHARED_LIBRARIES} ${ NX_LIBS})112 target_link_libraries(NeXus_Shared_Library ${HDF5_SHARED_LIBRARIES} ${HDF4_SHARED_LIBRARIES} ${MXML_SHARED_LIBRARIES} ${NX_LIBS}) 109 113 110 if(HAVE_XML)111 if(MXMLLIB_FOUND)112 target_link_libraries(NeXus_Static_Library ${MXML})113 target_link_libraries(NeXus_Shared_Library ${MXML})114 else()115 target_link_libraries(NeXus_Static_Library MXML_Static_Library)116 target_link_libraries(NeXus_Shared_Library MXML_Shared_Library)117 endif(MXMLLIB_FOUND)118 endif(HAVE_XML)114 #if(HAVE_MXML) 115 #if(MXMLLIB_FOUND) 116 # target_link_libraries(NeXus_Static_Library ${MXML}) 117 # target_link_libraries(NeXus_Shared_Library ${MXML}) 118 #else() 119 # target_link_libraries(NeXus_Static_Library MXML_Static_Library) 120 # target_link_libraries(NeXus_Shared_Library MXML_Shared_Library) 121 #endif(MXMLLIB_FOUND) 122 #endif(HAVE_MXML) 119 123 120 124 install (TARGETS NeXus_Static_Library NeXus_Shared_Library
Note: See TracChangeset
for help on using the changeset viewer.
