]> git.lyx.org Git - lyx.git/blob - development/cmake/modules/FindGNUWIN32.cmake
correct svn properties, upadte aspell handling
[lyx.git] / development / cmake / modules / FindGNUWIN32.cmake
1 if (WIN32)
2
3 file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _progFiles)
4
5 find_file(GNUWIN32_DIR gnuwin32
6    ${_progFiles}
7    "C:/"
8 )
9
10 if (GNUWIN32_DIR)
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)
17 else (GNUWIN32_DIR)
18    set(GNUWIN32_FOUND)
19 endif (GNUWIN32_DIR)
20
21 if (GNUWIN32_FOUND)
22   if (NOT GNUWIN32_FIND_QUIETLY)
23     message(STATUS "Found GNUWIN32: ${GNUWIN32_DIR}")
24   endif (NOT GNUWIN32_FIND_QUIETLY)
25 else (GNUWIN32_FOUND)
26   if (GNUWIN32_FIND_REQUIRED)
27     message(SEND_ERROR "Could NOT find GNUWIN32")
28   endif (GNUWIN32_FIND_REQUIRED)
29 endif (GNUWIN32_FOUND)
30
31 endif (WIN32)
32