2013-12-24 10:47:30 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8.9)
|
|
|
|
|
|
|
|
project(GroupView)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
IF(APPLE)
|
|
|
|
message(STATUS "Using APPLE CMAKE_CXX_FLAGS")
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
|
|
|
|
ELSEIF(UNIX)
|
|
|
|
# assume GCC, add C++0x/C++11 stuff
|
|
|
|
MESSAGE(STATUS "Using UNIX CMAKE_CXX_FLAGS")
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
|
|
|
|
ELSEIF(MINGW)
|
|
|
|
MESSAGE(STATUS "Using MINGW CMAKE_CXX_FLAGS")
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -Wall")
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
find_package(Qt5Core REQUIRED)
|
|
|
|
find_package(Qt5Gui REQUIRED)
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
|
|
|
|
|
|
|
include_directories(${Qt5Core_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
main.cpp
|
2013-12-30 22:39:10 +00:00
|
|
|
main.h
|
2013-12-24 10:47:30 +00:00
|
|
|
|
|
|
|
CategorizedView.h
|
|
|
|
CategorizedView.cpp
|
|
|
|
CategorizedProxyModel.h
|
|
|
|
CategorizedProxyModel.cpp
|
2013-12-30 17:45:40 +00:00
|
|
|
InstanceDelegate.h
|
|
|
|
InstanceDelegate.cpp
|
2013-12-24 10:47:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(GroupView ${SOURCES})
|
|
|
|
qt5_use_modules(GroupView Core Gui Widgets)
|