From 4b38800ab7eba3db99935b5aa3d79c02395cfc95 Mon Sep 17 00:00:00 2001 From: cen1 Date: Fri, 18 Apr 2025 15:28:40 +0200 Subject: - modernize CMake by adding target_ where missing, split add_library and sources (target_sources), some reordering - make tests it's own CMake project - add CMake option to override hardcoded test data paths - improve CMake documentation, document all options - add basic CI build for Debian, Fedora and Windows - add release pipeline to create .deb, .rpm and Windows li/dll archives --- test/StormTest.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'test/StormTest.cpp') diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 5a442a5..f9f2a03 100755 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -155,16 +155,18 @@ typedef struct _WAVE_FILE_HEADER //------------------------------------------------------------------------------ // Local variables -#ifdef STORMLIB_WINDOWS -#define WORK_PATH_ROOT _T("\\Multimedia\\MPQs") -#endif - -#ifdef STORMLIB_LINUX -#define WORK_PATH_ROOT "/media/ladik/MPQs" -#endif - -#ifdef STORMLIB_HAIKU -#define WORK_PATH_ROOT "~/StormLib/test" +#ifndef WORK_PATH_ROOT + #ifdef STORMLIB_WINDOWS + #define WORK_PATH_ROOT _T("\\Multimedia\\MPQs") + #endif + + #ifdef STORMLIB_LINUX + #define WORK_PATH_ROOT "/media/ladik/MPQs" + #endif + + #ifdef STORMLIB_HAIKU + #define WORK_PATH_ROOT "~/StormLib/test" + #endif #endif // Definition of the path separator -- cgit v1.2.3