mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 10:50:04 -05:00
Migrate the build system to cmake
This commit is contained in:
13
tests/compressed_archive_test/CMakeLists.txt
Normal file
13
tests/compressed_archive_test/CMakeLists.txt
Normal 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)
|
||||
@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user