2011-11-01 13:59:23 +00:00
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
2011-12-01 13:15:20 +00:00
|
|
|
project(pass2)
|
|
|
|
|
2011-11-01 13:59:23 +00:00
|
|
|
find_package(Qt5Core REQUIRED)
|
|
|
|
|
|
|
|
include_directories(${Qt5Core_INCLUDE_DIRS})
|
|
|
|
|
2012-02-10 15:40:12 +00:00
|
|
|
add_definitions(${Qt5Core_DEFINITIONS})
|
|
|
|
|
2011-11-01 13:59:23 +00:00
|
|
|
qt5_wrap_cpp(moc_files myobject.h)
|
|
|
|
|
2011-12-05 01:19:55 +00:00
|
|
|
qt5_add_resources(rcc_files "pass2.qrc")
|
|
|
|
|
2012-02-21 11:06:54 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
|
|
|
|
|
2011-12-05 01:19:55 +00:00
|
|
|
add_executable(myobject myobject.cpp ${moc_files} ${rcc_files})
|
2011-12-03 22:00:12 +00:00
|
|
|
target_link_libraries(myobject ${Qt5Core_LIBRARIES})
|