CMake - Build GUI also in Cygwin if QT4 is found.

This commit is contained in:
Kimmo Varis 2010-01-26 00:19:02 +02:00
parent e12d115e9a
commit 40951e1618
2 changed files with 3 additions and 6 deletions

View File

@ -26,10 +26,5 @@ ELSE (MSVC_IDE)
ADD_SUBDIRECTORY(test EXCLUDE_FROM_ALL)
ENDIF (MSVC_IDE)
# Don't build GUI for Cygwin (most installations don't have QT)
IF (NOT CYGWIN)
ADD_SUBDIRECTORY(gui)
ENDIF (NOT CYGWIN)
ADD_SUBDIRECTORY(gui)
ADD_SUBDIRECTORY(man)

View File

@ -133,4 +133,6 @@ ADD_EXECUTABLE(gui WIN32 ${CHECKGUI_SRCS} ${CHECK_MOC_SRCS} ${CHECK_HEADERS}
${CHECK_UIS_H} ${CHECK_RCC_SRCS})
TARGET_LINK_LIBRARIES(gui ${CHECK_LIBS} ${QT_LIBRARIES})
ELSE(QT4_FOUND)
message("GUI not built since QT4 not found.")
ENDIF(QT4_FOUND)