Changeset 1629


Ignore:
Timestamp:
18/08/11 19:19:06 (9 months ago)
Author:
Freddie Akeroyd
Message:

Updates for cmake building on win64. Refs #281

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/CMakeLists.txt

    • Property svn:eol-style set to native
    r1625 r1629  
    3333endif (CMAKE_Fortran_COMPILER_WORKS) 
    3434#add_subdirectory (idl) 
    35 add_subdirectory (java) 
     35if (NOT(Java_JAVAC_EXECUTABLE MATCHES NOTFOUND)) 
     36    add_subdirectory (java) 
     37endif () 
    3638#add_subdirectory (matlab) 
    3739if (PYTHONINTERP_FOUND) 
  • trunk/cmake_include/FindSZIP.cmake

    r1625 r1629  
    2727#==================================================================== 
    2828 
    29 find_library(SZIP_LIB NAMES sz szip PATHS $ENV{HDF5_ROOT}/bin $ENV{HDF5_ROOT}/lib) 
     29find_library(SZIP_LIB NAMES sz szip PATHS $ENV{HDF5_ROOT}/bin $ENV{HDF5_ROOT}/lib $ENV{HDF5_ROOT}/dll) 
    3030 
    3131find_path(SZIP_INCLUDE NAMES sz.h szlib.h PATHS $ENV{HDF5_ROOT}/include) 
  • trunk/src/CMakeLists.txt

    r1618 r1629  
    5858#endif (MINGW_MSYS) 
    5959 
     60# need napi_exports2.c  on win32 but not win64 
     61if (WIN32) 
     62    set(WINSRC napi_exports.c napi_exports.h) 
     63endif (WIN32) 
     64 
    6065#Make NeXus Static Library 
    61  
    6266add_library (NeXus_Static_Library STATIC napi.c napiu.c nxstack.c nxstack.h 
    63              stptok.c  nxdataset.c nxdataset.h nx_stptok.h ${H4SRC} ${H5SRC} 
     67             stptok.c  nxdataset.c nxdataset.h nx_stptok.h ${WINSRC} ${H4SRC} ${H5SRC} 
    6468             ${XMLSRC}) 
    6569 
     
    7377 
    7478add_library (NeXus_Shared_Library SHARED napi.c napiu.c nxstack.c nxstack.h 
    75              stptok.c  nxdataset.c nxdataset.h nx_stptok.h ${H4SRC} ${H5SRC} 
     79             stptok.c  nxdataset.c nxdataset.h nx_stptok.h ${WINSRC} ${H4SRC} ${H5SRC} 
    7680             ${XMLSRC}) 
    7781 
    7882#Note - library version needs to be got from somewhere? 
    7983set_target_properties(NeXus_Shared_Library PROPERTIES OUTPUT_NAME NeXus 
    80                       VERSION 1.0 SOVERSION 4) 
     84                      VERSION 1.0 SOVERSION 4 LINK_FLAGS /def:${PROJECT_SOURCE_DIR}\\windows_extra\\libnexus-0-x64.def) 
    8185 
    8286target_link_libraries(NeXus_Shared_Library ${HDF5_LIBRARIES} 
Note: See TracChangeset for help on using the changeset viewer.