SET(EXECUTABLE_OUTPUT_PATH ${vxl_BINARY_DIR}/v3p/netlib/examples)

LINK_LIBRARIES(netlib)

INCLUDE(${MODULE_PATH}/FindNetlib.cmake)
IF(NETLIB_FOUND)
  INCLUDE_DIRECTORIES(${NETLIB_INCLUDE_DIR})

  INCLUDE(${MODULE_PATH}/NewCMake/FindX11.cmake)
  IF(X11_FOUND)
    INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
    LINK_LIBRARIES(${X11_X11_LIBRARY})
    ADD_EXECUTABLE(netlib_showme showme.c)
  ENDIF(X11_FOUND)

ENDIF(NETLIB_FOUND)
