7
7
# LIBLAS_LIBRARIES = full path to the library
8
8
# LIBLAS_INCLUDE_DIR = where to find the library headers also defined,
9
9
# but not for general use are
10
- # LIBLAS_LIBRARY = where to find the PROJ.4 library.
10
+ # LIBLAS_LIBRARY = where to find the library.
11
11
# LIBLAS_VERSION = version of library which was found, e.g. "1.2.5"
12
12
#
13
13
# Copyright (c) 2009 Mateusz Loskot <[email protected] >
@@ -25,16 +25,16 @@ IF(LIBLAS_INCLUDE_DIR)
25
25
SET (LIBLAS_FIND_QUIETLY TRUE )
26
26
ENDIF ()
27
27
28
- IF (WIN32 )
29
- SET (OSGEO4W_IMPORT_LIBRARY liblas)
30
- IF (DEFINED ENV{OSGEO4W_ROOT})
31
- SET (OSGEO4W_ROOT_DIR $ENV{OSGEO4W_ROOT} )
32
- #MESSAGE(STATUS " FindLibLAS: trying OSGeo4W using environment variable OSGEO4W_ROOT=$ENV{OSGEO4W_ROOT}")
33
- ELSE ()
34
- SET (OSGEO4W_ROOT_DIR c:/OSGeo4W)
35
- #MESSAGE(STATUS " FindLibLAS: trying OSGeo4W using default location OSGEO4W_ROOT=${OSGEO4W_ROOT_DIR}")
36
- ENDIF ()
37
- ENDIF ()
28
+ # IF(WIN32)
29
+ # SET(OSGEO4W_IMPORT_LIBRARY liblas)
30
+ # IF(DEFINED ENV{OSGEO4W_ROOT})
31
+ # SET(OSGEO4W_ROOT_DIR $ENV{OSGEO4W_ROOT})
32
+ # #MESSAGE(STATUS " FindLibLAS: trying OSGeo4W using environment variable OSGEO4W_ROOT=$ENV{OSGEO4W_ROOT}")
33
+ # ELSE()
34
+ # SET(OSGEO4W_ROOT_DIR c:/OSGeo4W)
35
+ # #MESSAGE(STATUS " FindLibLAS: trying OSGeo4W using default location OSGEO4W_ROOT=${OSGEO4W_ROOT_DIR}")
36
+ # ENDIF()
37
+ # ENDIF()
38
38
39
39
40
40
FIND_PATH (LIBLAS_INCLUDE_DIR
@@ -43,22 +43,23 @@ FIND_PATH(LIBLAS_INCLUDE_DIR
43
43
PATHS
44
44
/usr/include
45
45
/usr/local/include
46
- /tmp/lasjunk/include
47
- ${OSGEO4W_ROOT_DIR} /include )
46
+ /tmp/lasjunk/include )
47
+ # ${OSGEO4W_ROOT_DIR}/include)
48
48
49
49
if (WIN32 )
50
- SET (LIBLAS_NAMES ${OSGEO4W_IMPORT_LIBRARY} liblas)
50
+ SET (LIBLAS_NAMES liblas)
51
+ # SET(LIBLAS_NAMES ${OSGEO4W_IMPORT_LIBRARY} liblas)
51
52
else ()
52
- SET (LIBLAS_NAMES ${OSGEO4W_IMPORT_LIBRARY} las)
53
+ SET (LIBLAS_NAMES las)
53
54
endif ()
54
55
55
56
FIND_LIBRARY (LIBLAS_LIBRARY
56
57
NAMES ${LIBLAS_NAMES}
57
58
PATHS
58
59
/usr/lib
59
60
/usr/local/lib
60
- /tmp/lasjunk/lib
61
- ${OSGEO4W_ROOT_DIR} /lib)
61
+ /tmp/lasjunk/lib)
62
+ # ${OSGEO4W_ROOT_DIR}/lib)
62
63
63
64
IF (LIBLAS_FOUND)
64
65
SET (LIBLAS_LIBRARIES ${LIBLAS_LIBRARY} )
0 commit comments