PROJECT(RUNPHAROS) CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0) SET(CMAKE_BUILD_TYPE release) FIND_PACKAGE(Qt4 REQUIRED) INCLUDE(${QT_USE_FILE}) SET(CPP_FILES main.cpp MainWindow.cpp MyWidget.cpp ConfigDialog.cpp TechnoRow.cpp) QT4_WRAP_CPP(MOC_RUNPHAROS MainWindow.h MyWidget.h ConfigDialog.h TechnoRow.h) IF(APPLE) ADD_EXECUTABLE(runPharos MACOSX_BUNDLE ${MOC_RUNPHAROS} ${CPP_FILES}) ELSE(APPLE) ADD_EXECUTABLE(runPharos ${MOC_RUNPHAROS} ${CPP_FILES}) ENDIF(APPLE) TARGET_LINK_LIBRARIES(runPharos ${QT_LIBRARIES}) INSTALL(TARGETS runPharos DESTINATION /)