3 file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _progFiles)
5 find_file(GNUWIN32_DIR gnuwin32
11 set(GNUWIN32_INCLUDE_DIR ${GNUWIN32_DIR}/include)
12 set(GNUWIN32_LIBRARY_DIR ${GNUWIN32_DIR}/lib)
13 set(GNUWIN32_BINARY_DIR ${GNUWIN32_DIR}/bin)
14 set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${GNUWIN32_INCLUDE_DIR})
15 set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${GNUWIN32_LIBRARY_DIR})
16 set(GNUWIN32_FOUND TRUE)
22 if (NOT GNUWIN32_FIND_QUIETLY)
23 message(STATUS "Found GNUWIN32: ${GNUWIN32_DIR}")
24 endif (NOT GNUWIN32_FIND_QUIETLY)
26 if (GNUWIN32_FIND_REQUIRED)
27 message(SEND_ERROR "Could NOT find GNUWIN32")
28 endif (GNUWIN32_FIND_REQUIRED)
29 endif (GNUWIN32_FOUND)