diff options
Diffstat (limited to 'Templates')
-rw-r--r-- | Templates/AppleInfo.plist | 34 | ||||
-rw-r--r-- | Templates/CMakeVSMacros1.vsmacros | bin | 0 -> 88064 bytes | |||
-rw-r--r-- | Templates/CMakeVSMacros2.vsmacros | bin | 0 -> 63488 bytes | |||
-rw-r--r-- | Templates/CPack.GenericDescription.txt | 5 | ||||
-rw-r--r-- | Templates/CPack.GenericLicense.txt | 5 | ||||
-rw-r--r-- | Templates/CPack.GenericWelcome.txt | 1 | ||||
-rw-r--r-- | Templates/CPackConfig.cmake.in | 20 | ||||
-rw-r--r-- | Templates/CTestScript.cmake.in | 33 | ||||
-rw-r--r-- | Templates/TestDriver.cxx.in | 167 | ||||
-rw-r--r-- | Templates/Windows/ApplicationIcon.png | bin | 0 -> 3392 bytes | |||
-rw-r--r-- | Templates/Windows/Logo.png | bin | 0 -> 801 bytes | |||
-rw-r--r-- | Templates/Windows/SmallLogo.png | bin | 0 -> 329 bytes | |||
-rw-r--r-- | Templates/Windows/SmallLogo44x44.png | bin | 0 -> 554 bytes | |||
-rw-r--r-- | Templates/Windows/SplashScreen.png | bin | 0 -> 2146 bytes | |||
-rw-r--r-- | Templates/Windows/StoreLogo.png | bin | 0 -> 429 bytes | |||
-rw-r--r-- | Templates/Windows/Windows_TemporaryKey.pfx | bin | 0 -> 2560 bytes |
16 files changed, 265 insertions, 0 deletions
diff --git a/Templates/AppleInfo.plist b/Templates/AppleInfo.plist new file mode 100644 index 0000000..3445e53 --- /dev/null +++ b/Templates/AppleInfo.plist @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>CFBundleExecutable</key> + <string>${APPLE_GUI_EXECUTABLE}</string> + <key>CFBundleGetInfoString</key> + <string>${APPLE_GUI_INFO_STRING}</string> + <key>CFBundleIconFile</key> + <string>${APPLE_GUI_ICON}</string> + <key>CFBundleIdentifier</key> + <string>${APPLE_GUI_IDENTIFIER}</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleLongVersionString</key> + <string>${APPLE_GUI_LONG_VERSION_STRING}</string> + <key>CFBundleName</key> + <string>${APPLE_GUI_BUNDLE_NAME}</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleShortVersionString</key> + <string>${APPLE_GUI_SHORT_VERSION_STRING}</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>${APPLE_GUI_BUNDLE_VERSION}</string> + <key>CSResourcesFileMapped</key> + <true/> + <key>NSHumanReadableCopyright</key> + <string>${APPLE_GUI_COPYRIGHT}</string> +</dict> +</plist> diff --git a/Templates/CMakeVSMacros1.vsmacros b/Templates/CMakeVSMacros1.vsmacros Binary files differnew file mode 100644 index 0000000..60487d9 --- /dev/null +++ b/Templates/CMakeVSMacros1.vsmacros diff --git a/Templates/CMakeVSMacros2.vsmacros b/Templates/CMakeVSMacros2.vsmacros Binary files differnew file mode 100644 index 0000000..5ba2799 --- /dev/null +++ b/Templates/CMakeVSMacros2.vsmacros diff --git a/Templates/CPack.GenericDescription.txt b/Templates/CPack.GenericDescription.txt new file mode 100644 index 0000000..712ee14 --- /dev/null +++ b/Templates/CPack.GenericDescription.txt @@ -0,0 +1,5 @@ +DESCRIPTION +=========== + +This is an installer created using CPack (https://cmake.org). No additional installation instructions provided. + diff --git a/Templates/CPack.GenericLicense.txt b/Templates/CPack.GenericLicense.txt new file mode 100644 index 0000000..09c6218 --- /dev/null +++ b/Templates/CPack.GenericLicense.txt @@ -0,0 +1,5 @@ +LICENSE +======= + +This is an installer created using CPack (https://cmake.org). No license provided. + diff --git a/Templates/CPack.GenericWelcome.txt b/Templates/CPack.GenericWelcome.txt new file mode 100644 index 0000000..5330087 --- /dev/null +++ b/Templates/CPack.GenericWelcome.txt @@ -0,0 +1 @@ +Welcome to installation. This program will guide you through the installation of this software. diff --git a/Templates/CPackConfig.cmake.in b/Templates/CPackConfig.cmake.in new file mode 100644 index 0000000..c00ea2a --- /dev/null +++ b/Templates/CPackConfig.cmake.in @@ -0,0 +1,20 @@ +# This file will be configured to contain variables for CPack. These variables +# should be set in the CMake list file of the project before CPack module is +# included. The list of available CPACK_xxx variables and their associated +# documentation may be obtained using +# cpack --help-variable-list +# +# Some variables are common to all generators (e.g. CPACK_PACKAGE_NAME) +# and some are specific to a generator +# (e.g. CPACK_NSIS_EXTRA_INSTALL_COMMANDS). The generator specific variables +# usually begin with CPACK_<GENNAME>_xxxx. + +@_CPACK_OTHER_VARIABLES_@ + +if(NOT CPACK_PROPERTIES_FILE) + set(CPACK_PROPERTIES_FILE "@CMAKE_BINARY_DIR@/CPackProperties.cmake") +endif() + +if(EXISTS ${CPACK_PROPERTIES_FILE}) + include(${CPACK_PROPERTIES_FILE}) +endif() diff --git a/Templates/CTestScript.cmake.in b/Templates/CTestScript.cmake.in new file mode 100644 index 0000000..5fb3529 --- /dev/null +++ b/Templates/CTestScript.cmake.in @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 2.4) + +# This is a template for the CTest script for this system + +set(CTEST_SITE "@SITE@") +set(CTEST_BUILD_NAME "@BUILDNAME@") + +# --- +set(CTEST_SOURCE_DIRECTORY "@CMAKE_SOURCE_DIR@") +set(CTEST_BINARY_DIRECTORY "@CMAKE_BINARY_DIR@") +set(CTEST_UPDATE_COMMAND "@UPDATE_COMMAND@") +set(CTEST_UPDATE_OPTIONS "@UPDATE_OPTIONS@") +set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@") +set(CTEST_BUILD_CONFIGURATION "Release") +#set(CTEST_MEMORYCHECK_COMMAND "@MEMORYCHECK_COMMAND@") +#set(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE "@MEMORYCHECK_SUPPRESSIONS_FILE@") +#set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "@MEMORYCHECK_COMMAND_OPTIONS@") +#set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@") +set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}") + +#CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY}) + +set(CTEST_DROP_METHOD "@DROP_METHOD@") + +CTEST_START(Experimental TRACK Weekly) +CTEST_UPDATE(SOURCE "${CTEST_SOURCE_DIRECTORY}") +CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}") +CTEST_READ_CUSTOM_FILES("${CTEST_BINARY_DIRECTORY}") +CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}") +CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}") +#CTEST_MEMCHECK(BUILD "${CTEST_BINARY_DIRECTORY}") +#CTEST_COVERAGE(BUILD "${CTEST_BINARY_DIRECTORY}") +CTEST_SUBMIT() diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in new file mode 100644 index 0000000..3e0afa5 --- /dev/null +++ b/Templates/TestDriver.cxx.in @@ -0,0 +1,167 @@ +#include <ctype.h> +#include <stdio.h> +#include <string.h> +#include <stdlib.h> + +#if defined(_MSC_VER) +# pragma warning(disable:4996) /* deprecation */ +#endif + +@CMAKE_TESTDRIVER_EXTRA_INCLUDES@ + + +/* Forward declare test functions. */ +@CMAKE_FORWARD_DECLARE_TESTS@ + +/* Create map. */ + +typedef int (*MainFuncPointer)(int , char*[]); +typedef struct +{ + const char* name; + MainFuncPointer func; +} functionMapEntry; + +static functionMapEntry cmakeGeneratedFunctionMapEntries[] = { + @CMAKE_FUNCTION_TABLE_ENTIRES@ + {0,0} +}; + +/* Allocate and create a lowercased copy of string + (note that it has to be free'd manually) */ + +static char* lowercase(const char *string) +{ + char *new_string, *p; + size_t stringSize = 0; + +#ifdef __cplusplus + stringSize = static_cast<size_t>(strlen(string) + 1); + new_string = static_cast<char *>(malloc(sizeof(char) * stringSize)); +#else + stringSize = (size_t)(strlen(string) + 1); + new_string = (char *)(malloc(sizeof(char) * stringSize)); +#endif + + if (!new_string) + { + return 0; + } + strncpy(new_string, string, stringSize); + p = new_string; + while (*p != 0) + { +#ifdef __cplusplus + *p = static_cast<char>(tolower(*p)); +#else + *p = (char)(tolower(*p)); +#endif + + ++p; + } + return new_string; +} + +int main(int ac, char *av[]) +{ + int i, NumTests, testNum = 0, partial_match; + char *arg, *test_name; + int count; + int testToRun = -1; + + @CMAKE_TESTDRIVER_ARGVC_FUNCTION@ + + for(count =0; cmakeGeneratedFunctionMapEntries[count].name != 0; count++) + { + } + NumTests = count; + /* If no test name was given */ + /* process command line with user function. */ + if (ac < 2) + { + /* Ask for a test. */ + printf("Available tests:\n"); + for (i =0; i < NumTests; ++i) + { + printf("%3d. %s\n", i, cmakeGeneratedFunctionMapEntries[i].name); + } + printf("To run a test, enter the test number: "); + fflush(stdout); + if( scanf("%d", &testNum) != 1 ) + { + printf("Couldn't parse that input as a number\n"); + return -1; + } + if (testNum >= NumTests) + { + printf("%3d is an invalid test number.\n", testNum); + return -1; + } + testToRun = testNum; + ac--; + av++; + } + partial_match = 0; + arg = 0; + /* If partial match is requested. */ + if(testToRun == -1 && ac > 1) + { + partial_match = (strcmp(av[1], "-R") == 0) ? 1 : 0; + } + if (partial_match && ac < 3) + { + printf("-R needs an additional parameter.\n"); + return -1; + } + if(testToRun == -1) + { + arg = lowercase(av[1 + partial_match]); + } + for (i =0; i < NumTests && testToRun == -1; ++i) + { + test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name); + if (partial_match && strstr(test_name, arg) != NULL) + { + testToRun = i; + ac -=2; + av += 2; + } + else if (!partial_match && strcmp(test_name, arg) == 0) + { + testToRun = i; + ac--; + av++; + } + free(test_name); + } + if(arg) + { + free(arg); + } + if(testToRun != -1) + { + int result; +@CMAKE_TESTDRIVER_BEFORE_TESTMAIN@ + if (testToRun < 0 || testToRun >= NumTests) + { + printf( + "testToRun was modified by TestDriver code to an invalid value: %3d.\n", + testNum); + return -1; + } + result = (*cmakeGeneratedFunctionMapEntries[testToRun].func)(ac, av); +@CMAKE_TESTDRIVER_AFTER_TESTMAIN@ + return result; + } + + + /* Nothing was run, display the test names. */ + printf("Available tests:\n"); + for (i =0; i < NumTests; ++i) + { + printf("%3d. %s\n", i, cmakeGeneratedFunctionMapEntries[i].name); + } + printf("Failed: %s is an invalid test name.\n", av[1]); + + return -1; +} diff --git a/Templates/Windows/ApplicationIcon.png b/Templates/Windows/ApplicationIcon.png Binary files differnew file mode 100644 index 0000000..7d95d4e --- /dev/null +++ b/Templates/Windows/ApplicationIcon.png diff --git a/Templates/Windows/Logo.png b/Templates/Windows/Logo.png Binary files differnew file mode 100644 index 0000000..e26771c --- /dev/null +++ b/Templates/Windows/Logo.png diff --git a/Templates/Windows/SmallLogo.png b/Templates/Windows/SmallLogo.png Binary files differnew file mode 100644 index 0000000..1eb0d9d --- /dev/null +++ b/Templates/Windows/SmallLogo.png diff --git a/Templates/Windows/SmallLogo44x44.png b/Templates/Windows/SmallLogo44x44.png Binary files differnew file mode 100644 index 0000000..28810b7 --- /dev/null +++ b/Templates/Windows/SmallLogo44x44.png diff --git a/Templates/Windows/SplashScreen.png b/Templates/Windows/SplashScreen.png Binary files differnew file mode 100644 index 0000000..c951e03 --- /dev/null +++ b/Templates/Windows/SplashScreen.png diff --git a/Templates/Windows/StoreLogo.png b/Templates/Windows/StoreLogo.png Binary files differnew file mode 100644 index 0000000..dcb6727 --- /dev/null +++ b/Templates/Windows/StoreLogo.png diff --git a/Templates/Windows/Windows_TemporaryKey.pfx b/Templates/Windows/Windows_TemporaryKey.pfx Binary files differnew file mode 100644 index 0000000..1cad999 --- /dev/null +++ b/Templates/Windows/Windows_TemporaryKey.pfx |