Le fichier CMakeLists.txt n'a pas beaucoup changé non plus :
1
2
3
4
5
6
7
8
9
10
11
12
13
|
project(TextEditor)
cmake_minimum_required(VERSION 2.6)
find_package(Qt4 REQUIRED)
include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
set(TextEditor_SRCS TextEditor.cpp main.cpp)
qt4_automoc(${TextEditor_SRCS})
add_executable(textEditor ${TextEditor_SRCS})
target_link_libraries(textEditor ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
|
C'est parti pour la compilation.
|