From 38e7a1aaf0ffdcb876a166ef06a90178fbf00ea1 Mon Sep 17 00:00:00 2001 From: mlangkabel Date: Sat, 31 Mar 2018 12:11:07 +0200 Subject: [PATCH] build: minor changes and updates to readme and cmake * corrected version of referenced dependencies * changed cmake to generate test_main.cpp file on windows rather than copy it --- CMakeLists.txt | 2 ++ README.md | 10 ++++---- script/setup.sh | 4 ---- setup/cxx_test/windows/test_main.cpp | 36 ---------------------------- 4 files changed, 6 insertions(+), 46 deletions(-) delete mode 100644 setup/cxx_test/windows/test_main.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index ef9bf75d..608bef97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -700,6 +700,8 @@ else () endforeach( OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES ) endif () +file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_main.cpp "") + add_subdirectory(src/test) set(CXXTEST_INCLUDE_DIR $ENV{CXX_TEST_DIR}) diff --git a/README.md b/README.md index 9cc458c8..b90a0075 100644 --- a/README.md +++ b/README.md @@ -7,17 +7,15 @@ * JDK 1.8 * QT 5.9.1 * CxxTest 4.3 -* Clang & LLVM 4.0.1 (doesnt quite work for windows, use unix setup below and skip all the ninja stuff)(installation guide http://clang.llvm.org/docs/LibASTMatchersTutorial.html) +* Clang & LLVM 5.0 (doesnt quite work for windows, use unix setup below and skip all the ninja stuff)(installation guide http://clang.llvm.org/docs/LibASTMatchersTutorial.html) * Boost 1.64 * Botan 2.1.0 * Image Magick 7.0.6 * ccache (Unix) +* Visual Leak Detector (Windows) * Wix 3.11 (Windows) * Winrar (Windows) -also something about java, but who knows... - - #### Environment Variables * CXX_TEST_DIR - .../cxxtest-4.3 @@ -29,8 +27,8 @@ For MacOS and Linux * QT_DIR - .../Qt/Qt5.9.1/5.9.1/ For Windows: -* QT_WIN32_DIR - .../Qt/Qt5.9.1/5.9.1/msvc2015 -* QT_WIN64_DIR - .../Qt/Qt5.9.1/5.9.1/msvc2015_64 +* QT_WIN32_DIR - .../Qt/Qt5.9.1/5.9.1/msvc2015 +* QT_WIN64_DIR - .../Qt/Qt5.9.1/5.9.1/msvc2015_64 * VLD_DIR - .../Visual Leak Detector * JAVA_HOME - .../Java/jdk1.x.x_xxx * path diff --git a/script/setup.sh b/script/setup.sh index e4142bee..4c012a8c 100755 --- a/script/setup.sh +++ b/script/setup.sh @@ -103,10 +103,6 @@ fi if [ $PLATFORM == "Windows" ]; then - echo -e $INFO "copy test_main file" - cp -u setup/cxx_test/windows/test_main.cpp build/win32 - cp -u setup/cxx_test/windows/test_main.cpp build/win64 - echo -e $INFO "creating program icon" sh script/create_windows_icon.sh fi diff --git a/setup/cxx_test/windows/test_main.cpp b/setup/cxx_test/windows/test_main.cpp deleted file mode 100644 index 195ab791..00000000 --- a/setup/cxx_test/windows/test_main.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* Generated file, do not edit */ - -#ifndef CXXTEST_RUNNING -#define CXXTEST_RUNNING -#endif - -#include -#include -#include -#include -#include -#include - -int main( int argc, char *argv[] ) { - int status; - CxxTest::ParenPrinter tmp; - CxxTest::RealWorldDescription::_worldName = "cxxtest"; - status = CxxTest::Main< CxxTest::ParenPrinter >( tmp, argc, argv ); - return status; -} -bool suite_UtilityTestSuite_init = false; -#include "D:\projekte\code\2014_master_project\masterproject\src\test\UtilityTestSuite.h" - -static UtilityTestSuite suite_UtilityTestSuite; - -static CxxTest::List Tests_UtilityTestSuite = { 0, 0 }; -CxxTest::StaticSuiteDescription suiteDescription_UtilityTestSuite( "D:/projekte/code/2014_master_project/masterproject/src/test/UtilityTestSuite.h", 5, "UtilityTestSuite", suite_UtilityTestSuite, Tests_UtilityTestSuite ); - -static class TestDescription_suite_UtilityTestSuite_test_one_returns_the_number_one : public CxxTest::RealTestDescription { -public: - TestDescription_suite_UtilityTestSuite_test_one_returns_the_number_one() : CxxTest::RealTestDescription( Tests_UtilityTestSuite, suiteDescription_UtilityTestSuite, 8, "test_one_returns_the_number_one" ) {} - void runTest() { suite_UtilityTestSuite.test_one_returns_the_number_one(); } -} testDescription_suite_UtilityTestSuite_test_one_returns_the_number_one; - -#include -const char* CxxTest::RealWorldDescription::_worldName = "cxxtest";