Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[2a9de4]: config / cmake / Modules / NewCMake / FindECW.cmake Maximize Restore History

Download this file

FindECW.cmake    73 lines (57 with data), 2.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Find the ECW library - Enhanced Compression Wavelets for JPEG2000.
#
# Sets
# ECW_FOUND. If false, don't try to use ecw
# ECW_INCLUDE_DIR
# ECW_LIBRARIES
# The original sponsorring website of this library appears to have vanished,
# but there are still traces at http://www.gdal.org/frmt_ecw.html and a
# distribution at https://svn.zib.de/lenne3d/lib/libecw/current - IMS 7-Dec-2009.
IF( VXL_FORCE_V3P_J2K )
ELSE( VXL_FORCE_V3P_J2K )
SET( ECW_FOUND "NO" )
FIND_PATH( ECW_INCLUDE_DIR NCSEcw.h
/usr/include
/usr/local/include
)
IF( ECW_INCLUDE_DIR )
FIND_LIBRARY( ECW_ncsutil_LIBRARY NCSUtild
/usr/lib
/usr/local/lib
/usr/lib64
/usr/local/lib64
)
FIND_LIBRARY( ECW_ncsecw_LIBRARY NCSEcwd
/usr/lib
/usr/local/lib
/usr/lib64
/usr/local/lib64
)
IF( ECW_ncsutil_LIBRARY )
IF( ECW_ncsecw_LIBRARY )
SET( ECW_FOUND "YES" )
SET( ECW_LIBRARIES ${ECW_ncsutil_LIBRARY} ${ECW_ncsecw_LIBRARY} )
ENDIF( ECW_ncsecw_LIBRARY )
ENDIF( ECW_ncsutil_LIBRARY )
ENDIF( ECW_INCLUDE_DIR )
ENDIF( VXL_FORCE_V3P_J2K )
IF( ECW_FOUND )
SET(VXL_USING_NATIVE_J2K "YES")
ELSE( ECW_FOUND )
INCLUDE(${MODULE_PATH}/NewCMake/FindWin32SDK.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/FindMFC.cmake)
SET(J2K_SOURCES_FOUND "NO")
IF (EXISTS ${vxl_SOURCE_DIR}/v3p/j2k/Source/include/NCSEcw.h )
IF (EXISTS ${vxl_SOURCE_DIR}/v3p/j2k/Source/include/NCSUtil.h)
IF (EXISTS ${vxl_SOURCE_DIR}/v3p/j2k/Source/include/NCScnet.h)
SET(J2K_SOURCES_FOUND "YES")
ENDIF (EXISTS ${vxl_SOURCE_DIR}/v3p/j2k/Source/include/NCScnet.h)
ENDIF (EXISTS ${vxl_SOURCE_DIR}/v3p/j2k/Source/include/NCSUtil.h)
ENDIF (EXISTS ${vxl_SOURCE_DIR}/v3p/j2k/Source/include/NCSEcw.h )
IF( WIN32 AND J2K_SOURCES_FOUND AND WIN32SDK_FOUND AND MFC_FOUND)
SET( ECW_FOUND "YES" )
SET( ECW_INCLUDE_DIR ${vxl_SOURCE_DIR}/v3p/j2k/Source/include)
SET( ECW_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_DIR}/include/vxl/v3p/j2k)
SET( ECW_LIBRARIES NCSEcw NCSUtil )
ENDIF( WIN32 AND J2K_SOURCES_FOUND AND WIN32SDK_FOUND AND MFC_FOUND )
ENDIF( ECW_FOUND )