-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (24 loc) · 1.12 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#http://developer.qt.nokia.com/quarterly/view/using_cmake_to_build_qt_projects
PROJECT(teste_qt)
FIND_PACKAGE(Qt4 REQUIRED)
SET(hello_cmake_SOURCES main.cpp
mainwindow.cpp
dialogabout.cpp)
SET(hello_cmake_HEADERS mainwindow.h
dialogabout.h)
SET(hello_cmake_FORMS mainwindow.ui
dialogabout.ui)
SET(hello_cmake_RESOURCES resources.qrc)
QT4_WRAP_CPP(hello_cmake_HEADERS_MOC ${hello_cmake_HEADERS} )
QT4_WRAP_UI( hello_cmake_FORMS_HEADERS ${hello_cmake_FORMS} )
QT4_ADD_RESOURCES(hello_cmake_RESOURCES_RCC ${hello_cmake_RESOURCES})
INCLUDE( ${QT_USE_FILE} )
ADD_DEFINITIONS( ${QT_DEFINITIONS} )
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(/Users/guiga/Documents/workspace/hello_qt_model)
LINK_DIRECTORIES(/Users/guiga/Documents/workspace/hello_qt_model)
ADD_EXECUTABLE( hello_qt ${hello_cmake_SOURCES}
${hello_cmake_HEADERS_MOC}
${hello_cmake_FORMS_HEADERS}
${hello_cmake_RESOURCES_RCC})
TARGET_LINK_LIBRARIES( hello_qt ${QT_LIBRARIES} hello_qt_model)