Compatibility with versions prior to 2.8.12 is being deprecated, resulting in build warning messages. The minimum for the official supported distros is 3.7.2 (Stretch), so the version could be moved forward when newer features are required. Reference: https://cmake.org/cmake/help/v3.19/release/3.19.html#deprecated-and-removed-features
19 lines
356 B
CMake
19 lines
356 B
CMake
cmake_minimum_required(VERSION 3.0.0)
|
|
|
|
set(IOCOMPRESSOR-SOURCES
|
|
qtiocompressor.cpp
|
|
)
|
|
|
|
set(IOCOMPRESSOR-MOC-HEADERS
|
|
qtiocompressor.h
|
|
)
|
|
|
|
QT5_WRAP_CPP(IOCOMPRESSOR-SOURCES-MOC ${IOCOMPRESSOR-MOC-HEADERS})
|
|
|
|
ADD_LIBRARY(qtiocompressor STATIC
|
|
${IOCOMPRESSOR-SOURCES}
|
|
${IOCOMPRESSOR-SOURCES-MOC}
|
|
)
|
|
|
|
target_link_libraries(qtiocompressor Qt5::Core)
|