XPlor/tests/tests.pro

47 lines
1.3 KiB
Prolog
Raw Normal View History

2025-03-01 20:38:52 -05:00
TEMPLATE = app
CONFIG += no_main
# Enable the testlib module
2025-08-14 17:30:25 -04:00
QT += testlib core-private
2025-03-01 20:38:52 -05:00
# Define a test-specific flag
DEFINES += QT_TESTS
TARGET = tests
2025-08-14 17:30:25 -04:00
SOURCES += $$files($$PWD/*.cpp, true)
HEADERS += $$files($$PWD/*.h, true)
2025-03-01 20:38:52 -05:00
# Prevent tests from being built in release mode (optional)
# CONFIG(debug, debug|release) {
# message("Including test files in Debug mode")
# } else {
# SOURCES -= autotest_cod5.cpp
# }
2025-04-04 20:34:24 -04:00
LIBS += \
2025-07-10 00:11:06 -04:00
-L$$OUT_PWD/../libs/ -lcore -lencryption -lcompression -lfastfile -lzonefile -lassets \
2025-04-23 00:09:35 -04:00
-L$$PWD/../third_party/xbox_sdk/lib -lxcompress64
2025-04-04 20:34:24 -04:00
INCLUDEPATH += \
2025-04-23 00:09:35 -04:00
$$PWD/../third_party/xbox_sdk/include \
2025-04-04 20:34:24 -04:00
$$PWD/../libs/core \
$$PWD/../libs/encryption \
2025-04-04 20:40:22 -04:00
$$PWD/../libs/compression \
2025-05-03 09:57:47 -04:00
$$PWD/../libs/fastfile \
2025-07-10 00:11:06 -04:00
$$PWD/../libs/assets \
2025-05-03 09:57:47 -04:00
$$PWD/../libs/zonefile
2025-04-04 20:34:24 -04:00
DEPENDPATH += \
2025-04-23 00:09:35 -04:00
$$PWD/../third_party/xbox_sdk/include \
2025-04-04 20:34:24 -04:00
$$PWD/../libs/core \
$$PWD/../libs/encryption \
2025-04-04 20:40:22 -04:00
$$PWD/../libs/compression \
2025-05-03 09:57:47 -04:00
$$PWD/../libs/fastfile \
2025-07-10 00:11:06 -04:00
$$PWD/../libs/assets \
2025-05-03 09:57:47 -04:00
$$PWD/../libs/zonefile
2025-04-04 20:34:24 -04:00
2025-04-23 00:09:35 -04:00
# Copy DLLs to Debug & Release folder
QMAKE_POST_LINK += xcopy /Y /E /I \"$$PWD/../third_party/xbox_sdk/lib\\*.dll\" \"$$OUT_PWD/debug/\" $$escape_expand(\\n\\t)
QMAKE_POST_LINK += xcopy /Y /E /I \"$$PWD/../third_party/xbox_sdk/lib\\*.dll\" \"$$OUT_PWD/release/\" $$escape_expand(\\n\\t)