pollymc/depends/groupview/CMakeLists.txt

47 lines
1.0 KiB
CMake
Raw Normal View History

2013-03-12 02:49:17 +05:30
project(libGroupView)
set(CMAKE_AUTOMOC ON)
# Find Qt
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
2013-03-12 02:49:17 +05:30
# Include Qt headers.
include_directories(${Qt5Base_INCLUDE_DIRS})
SET(LIBGROUPVIEW_HEADERS
include/groupview_config.h
2013-03-12 02:49:17 +05:30
# Public headers
2013-08-04 15:51:51 +05:30
include/categorizedsortfilterproxymodel.h
include/categorizedview.h
include/categorydrawer.h
2013-03-12 02:49:17 +05:30
# Private headers
2013-08-04 15:51:51 +05:30
src/categorizedsortfilterproxymodel_p.h
src/categorizedview_p.h
2013-03-12 02:49:17 +05:30
)
SET(LIBGROUPVIEW_SOURCES
2013-08-04 15:51:51 +05:30
src/categorizedsortfilterproxymodel.cpp
src/categorizedview.cpp
src/categorydrawer.cpp
2013-03-12 02:49:17 +05:30
)
# Set the include dir path.
SET(LIBGROUPVIEW_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include" PARENT_SCOPE)
# Include self.
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${CMAKE_BINARY_DIR}/include)
# Static link!
ADD_DEFINITIONS(-DLIBGROUPVIEW_STATIC)
2013-03-12 02:49:17 +05:30
add_definitions(-DLIBGROUPVIEW_LIBRARY)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_library(libGroupView STATIC ${LIBGROUPVIEW_SOURCES} ${LIBGROUPVIEW_HEADERS})
qt5_use_modules(libGroupView Core Widgets)