pollymc/depends/groupview/CMakeLists.txt
Petr Mrázek b82eb5873e Add 'depends/groupview/' from commit '946d49675cb4725c31ab49a51f3bcae302f89a19'
git-subtree-dir: depends/groupview
git-subtree-mainline: a17caba2c9c2aa5960581db01e4b66472a9c019c
git-subtree-split: 946d49675cb4725c31ab49a51f3bcae302f89a19
2014-02-04 00:53:05 +01:00

41 lines
928 B
CMake

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
main.h
GroupView.h
GroupView.cpp
Group.h
Group.cpp
GroupedProxyModel.h
GroupedProxyModel.cpp
InstanceDelegate.h
InstanceDelegate.cpp
)
add_executable(GroupView ${SOURCES})
qt5_use_modules(GroupView Core Gui Widgets)