mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
f0990fae4b
PermGen can be tweaked from the settings menu Groups are saved on change/exit Install target is no longer completely broken All the deplibs are now static Added notes dialog Fixed ini file format support (can save strings with newlines, tabs. UTF-8 is explicitly used!) Rename button now uses line breaks so it doesn't grow ever wider (Added a custom tool button subclass) There is now a CAT button. Meow.
42 lines
952 B
CMake
42 lines
952 B
CMake
project(libGroupView)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
# Find Qt
|
|
find_package(Qt5Core REQUIRED)
|
|
find_package(Qt5Widgets REQUIRED)
|
|
|
|
# Include Qt headers.
|
|
include_directories(${Qt5Base_INCLUDE_DIRS})
|
|
|
|
SET(LIBGROUPVIEW_HEADERS
|
|
include/groupview_config.h
|
|
|
|
# Public headers
|
|
include/categorizedsortfilterproxymodel.h
|
|
include/categorizedview.h
|
|
include/categorydrawer.h
|
|
|
|
# Private headers
|
|
src/categorizedsortfilterproxymodel_p.h
|
|
src/categorizedview_p.h
|
|
)
|
|
|
|
SET(LIBGROUPVIEW_SOURCES
|
|
src/categorizedsortfilterproxymodel.cpp
|
|
src/categorizedview.cpp
|
|
src/categorydrawer.cpp
|
|
)
|
|
|
|
# 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)
|
|
|
|
add_definitions(-DLIBGROUPVIEW_LIBRARY)
|
|
|
|
add_library(libGroupView STATIC ${LIBGROUPVIEW_SOURCES} ${LIBGROUPVIEW_HEADERS})
|
|
qt5_use_modules(libGroupView Core Widgets)
|