Migrate the build system to cmake

This commit is contained in:
Luis Ángel San Martín Rodríguez
2026-02-25 09:19:39 +01:00
parent 5f8951ac09
commit 865020fe11
63 changed files with 1859 additions and 2060 deletions

View File

@ -0,0 +1,13 @@
# Compressed archive test
qt_add_executable(compressed_archive_test
main.cpp
)
target_link_libraries(compressed_archive_test PRIVATE
Qt::Core
cbx_backend
)
if(WIN32)
target_link_libraries(compressed_archive_test PRIVATE oleaut32 ole32)
endif()
add_test(NAME compressed_archive_test COMMAND compressed_archive_test)

View File

@ -1,26 +0,0 @@
TEMPLATE = app
CONFIG += console
SOURCES += \
main.cpp \
QT += core
win32 {
LIBS += -loleaut32 -lole32
msvc {
QMAKE_CXXFLAGS_RELEASE += /MP /Ob2 /Oi /Ot /GT
QMAKE_LFLAGS_RELEASE += /LTCG
}
CONFIG -= embed_manifest_exe
}
CONFIG(7zip) {
include(../../compressed_archive/wrapper.pri)
} else:CONFIG(unarr) {
include(../../compressed_archive/unarr/unarr-wrapper.pri)
} else:CONFIG(libarchive) {
include(../../compressed_archive/libarchive/libarchive-wrapper.pri)
} else {
include(../../compressed_archive/wrapper.pri)
}