diff options
Diffstat (limited to 'Source/QtDialog/CMakeLists.txt')
-rw-r--r-- | Source/QtDialog/CMakeLists.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt index 540887c..81c36cf 100644 --- a/Source/QtDialog/CMakeLists.txt +++ b/Source/QtDialog/CMakeLists.txt @@ -6,7 +6,6 @@ IF(NOT QT4_FOUND) MESSAGE(SEND_ERROR "Failed to find Qt 4.3 or greater.") ELSE(NOT QT4_FOUND) - SET(QT_USE_QTMAIN TRUE) INCLUDE(${QT_USE_FILE}) SET(SRCS @@ -18,7 +17,6 @@ ELSE(NOT QT4_FOUND) QCMakeCacheView.cxx QCMakeCacheView.h ) - QT4_WRAP_UI(UI_SRCS CMakeSetupDialog.ui ) @@ -30,13 +28,16 @@ ELSE(NOT QT4_FOUND) QT4_ADD_RESOURCES(RC_SRCS CMakeSetup.qrc) SET(SRCS ${SRCS} ${UI_SRCS} ${MOC_SRCS} ${RC_SRCS}) + IF(WIN32) + SET(SRCS ${SRCS} CMakeSetup.rc) + ENDIF(WIN32) + # TODO Mac OS X icon INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) ADD_EXECUTABLE(QtDialog WIN32 MACOSX_BUNDLE ${SRCS}) - TARGET_LINK_LIBRARIES(QtDialog CMakeLib ${QT_LIBRARIES}) - ADD_DEPENDENCIES(QtDialog cmake) + TARGET_LINK_LIBRARIES(QtDialog CMakeLib ${QT_QTMAIN_LIBRARY} ${QT_LIBRARIES}) ENDIF(NOT QT4_FOUND) |