From 347d35a8c06869627fb1fbf2df494b662e84426b Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 8 Mar 2025 17:08:54 +0100 Subject: Update README and configure related stuff for 1.5.0 - remove configure stuff from more README files - move documentation/README.txt to README.documentation.txt --- test/README-unittests.txt | 36 ++++++++++++++++++------------------ test/forms.cxx | 6 +++--- 2 files changed, 21 insertions(+), 21 deletions(-) (limited to 'test') diff --git a/test/README-unittests.txt b/test/README-unittests.txt index 77489e86f..b51d329de 100644 --- a/test/README-unittests.txt +++ b/test/README-unittests.txt @@ -1,7 +1,7 @@ HOW TO CREATE A NEW UNIT TEST ----------------------------- - 1) Create your new test/unittest_xxx.cxx file (or use an existing one) + 1) Create your new test/unittest_xxx.cxx file (or copy an existing one) 2) In your new cxx file, define a class derived from Fl_Group for your test (e.g. Ut_Test_Foo). @@ -50,30 +50,30 @@ HOW TO CREATE A NEW UNIT TEST 3) Add an entry anywhere to the enum {} at the top of the unittests.h file. Example: - enum { - UT_TEST_ABOUT = 0, - UT_TEST_POINTS, - ... - UT_TEST_FOO, <-- ADD YOUR TEST CLASS NAME IN ALL CAPS - ... - }; + enum { + UT_TEST_ABOUT = 0, + UT_TEST_POINTS, + ... + UT_TEST_FOO, <-- ADD YOUR TEST CLASS NAME IN ALL CAPS + ... + }; 4) Add your new unittest_xxx.cxx file to: - a) test/CMakeLists.txt -- cmake needs this - b) test/Makefile -- configure needs this (?) + test/CMakeLists.txt -- cmake needs this - You should then be able to use cmake to create a build directory that - builds with your new test. e.g. + You should then be able to use cmake to create a build directory that + builds with your new test. e.g. - mkdir build - cmake .. + mkdir build + cd build + cmake .. - ..and from there, you should be able to go through the common - edit/make/run development cycle: + ..and from there, you should be able to go through the common + edit/make/run development cycle: - make -j 4 <-- should build bin/test/unittests with your test - bin/test/unittests <-- run unittests to check your work + make -j 4 <-- should build bin/test/unittests with your test + bin/test/unittests <-- run unittests to check your work 5) That's it! diff --git a/test/forms.cxx b/test/forms.cxx index e19fade77..ba5a4ff58 100644 --- a/test/forms.cxx +++ b/test/forms.cxx @@ -6,7 +6,7 @@ // This demo show the different boxtypes. Note that some // boxtypes are not appropriate for some objects // -// Copyright 1998-2023 by Bill Spitzak and others. +// Copyright 1998-2025 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -186,8 +186,8 @@ int main(int argc, char *argv[]) { int main(int argc, char **argv) { fl_message_title("This program needs the Forms compatibility library"); fl_message( - "Please configure FLTK with Forms enabled (--enable-forms)\n" - "or the CMake option FLTK_BUILD_FORMS=ON."); + "Please configure FLTK with Forms enabled, i.e.\n" + "use the CMake option FLTK_BUILD_FORMS=ON."); return 0; } #endif // (FLTK_HAVE_FORMS) -- cgit v1.2.3