CMake - Build proper Win32 GUI program.

This commit is contained in:
Kimmo Varis 2010-01-03 19:50:04 +02:00
parent fa535ff3ae
commit b483221f45
1 changed files with 1 additions and 2 deletions

View File

@ -119,11 +119,10 @@ QT4_WRAP_CPP(CHECK_MOC_SRCS ${CHECK_HEADERS})
# add translations ...
QT4_ADD_TRANSLATION(CHECK_QM ${CHECK_TRANS})
# Include binary directory where code from UI files gets created
include_directories(${CMAKE_CURRENT_BINARY_DIR})
ADD_EXECUTABLE(gui ${CHECKGUI_SRCS} ${CHECK_MOC_SRCS} ${CHECK_UIS_H}
ADD_EXECUTABLE(gui WIN32 ${CHECKGUI_SRCS} ${CHECK_MOC_SRCS} ${CHECK_UIS_H}
${CHECK_RCC_SRCS} ${CHECK_QM})
TARGET_LINK_LIBRARIES(gui ${CHECK_LIBS} ${QT_LIBRARIES})