
include_directories(
    .
    ../include
    ../include/hexer
    ${GDAL_INCLUDE_DIR})

set(CURSE curse)

if(WIN32)
if(NOT BUILD_STATIC)
    add_definitions("-DHEXER_DLL_IMPORT=1")
endif()
endif()


if(CURSE)
    add_executable(${CURSE} curse.cpp lasfile.hpp las.hpp las.cpp OGR.hpp OGR.cpp)
    target_link_libraries(${CURSE} ${HEXER_LIB_NAME} ${Boost_LIBRARIES} ${GDAL_LIBRARY})
endif()

install(TARGETS ${HEXER_UTILITIES}
    RUNTIME DESTINATION ${HEXER_BIN_DIR}
    LIBRARY DESTINATION ${HEXER_LIB_DIR}
    ARCHIVE DESTINATION ${HEXER_LIB_DIR})


include_directories(
    .
    ../include
    ../include/hexer
    ${GDAL_INCLUDE_DIR})

set(CURSE curse)
set(HEXER_UTILITIES
  ${CURSE})

if(WIN32)
if(NOT BUILD_STATIC)
    add_definitions("-DHEXER_DLL_IMPORT=1")
endif()
endif()


if(CURSE)
    add_executable(${CURSE} curse.cpp lasfile.hpp las.hpp las.cpp OGR.hpp OGR.cpp)
    target_link_libraries(${CURSE} ${HEXER_LIB_NAME} ${Boost_LIBRARIES} ${GDAL_LIBRARY})
endif()

install(TARGETS ${HEXER_UTILITIES}
    RUNTIME DESTINATION ${HEXER_BIN_DIR}
    LIBRARY DESTINATION ${HEXER_LIB_DIR}
    ARCHIVE DESTINATION ${HEXER_LIB_DIR})

Set HEXER_UTILITIES so curse gets installed
Set HEXER_UTILITIES so curse gets installed

Before this patch, curse was not installed to the system with an
install.
