summaryrefslogtreecommitdiffstats
path: root/Tests/Module/GenerateExportHeader/libshared
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-01 19:22:05 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-05 13:45:42 (GMT)
commitfc3dab0ea956db618fe2b77778ac413db846b422 (patch)
treede71447ff4c14e7a2d204ed94445f162a49d9266 /Tests/Module/GenerateExportHeader/libshared
parent4feba34d02fe42fd20209e5b247f91d8e0f7a2ac (diff)
downloadCMake-fc3dab0ea956db618fe2b77778ac413db846b422.zip
CMake-fc3dab0ea956db618fe2b77778ac413db846b422.tar.gz
CMake-fc3dab0ea956db618fe2b77778ac413db846b422.tar.bz2
Tests: Port GenerateExportHeader test to RunCMake infrastructure
This will allow build failure cases to be added later.
Diffstat (limited to 'Tests/Module/GenerateExportHeader/libshared')
-rw-r--r--Tests/Module/GenerateExportHeader/libshared/CMakeLists.txt16
-rw-r--r--Tests/Module/GenerateExportHeader/libshared/libshared.cpp102
-rw-r--r--Tests/Module/GenerateExportHeader/libshared/libshared.h57
3 files changed, 0 insertions, 175 deletions
diff --git a/Tests/Module/GenerateExportHeader/libshared/CMakeLists.txt b/Tests/Module/GenerateExportHeader/libshared/CMakeLists.txt
deleted file mode 100644
index e20adb1..0000000
--- a/Tests/Module/GenerateExportHeader/libshared/CMakeLists.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-
-cmake_minimum_required(VERSION 2.8)
-
-project(libshared)
-
-include(GenerateExportHeader)
-
-add_compiler_export_flags()
-
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-add_library(libshared SHARED libshared.cpp)
-
-generate_export_header(libshared)
-
-export(TARGETS libshared FILE Targets.cmake)
diff --git a/Tests/Module/GenerateExportHeader/libshared/libshared.cpp b/Tests/Module/GenerateExportHeader/libshared/libshared.cpp
deleted file mode 100644
index ad6d356..0000000
--- a/Tests/Module/GenerateExportHeader/libshared/libshared.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-
-#include "libshared.h"
-
-int Libshared::libshared() const
-{
- return 0;
-}
-
-int Libshared::libshared_exported() const
-{
- return 0;
-}
-
-int Libshared::libshared_deprecated() const
-{
- return 0;
-}
-
-int Libshared::libshared_not_exported() const
-{
- return 0;
-}
-
-int Libshared::libshared_excluded() const
-{
- return 0;
-}
-
-int LibsharedNotExported::libshared() const
-{
- return 0;
-}
-
-int LibsharedNotExported::libshared_exported() const
-{
- return 0;
-}
-
-int LibsharedNotExported::libshared_deprecated() const
-{
- return 0;
-}
-
-int LibsharedNotExported::libshared_not_exported() const
-{
- return 0;
-}
-
-int LibsharedNotExported::libshared_excluded() const
-{
- return 0;
-}
-
-int LibsharedExcluded::libshared() const
-{
- return 0;
-}
-
-int LibsharedExcluded::libshared_exported() const
-{
- return 0;
-}
-
-int LibsharedExcluded::libshared_deprecated() const
-{
- return 0;
-}
-
-int LibsharedExcluded::libshared_not_exported() const
-{
- return 0;
-}
-
-int LibsharedExcluded::libshared_excluded() const
-{
- return 0;
-}
-
-int libshared()
-{
- return 0;
-}
-
-int libshared_exported()
-{
- return 0;
-}
-
-int libshared_deprecated()
-{
- return 0;
-}
-
-int libshared_not_exported()
-{
- return 0;
-}
-
-int libshared_excluded()
-{
- return 0;
-}
diff --git a/Tests/Module/GenerateExportHeader/libshared/libshared.h b/Tests/Module/GenerateExportHeader/libshared/libshared.h
deleted file mode 100644
index bd9f2e3..0000000
--- a/Tests/Module/GenerateExportHeader/libshared/libshared.h
+++ /dev/null
@@ -1,57 +0,0 @@
-
-#ifndef LIBSHARED_H
-#define LIBSHARED_H
-
-#include "libshared_export.h"
-
-class LIBSHARED_EXPORT Libshared
-{
-public:
- int libshared() const;
-
- int libshared_exported() const;
-
- int LIBSHARED_DEPRECATED libshared_deprecated() const;
-
- int libshared_not_exported() const;
-
- int LIBSHARED_NO_EXPORT libshared_excluded() const;
-};
-
-class LibsharedNotExported
-{
-public:
- int libshared() const;
-
- int LIBSHARED_EXPORT libshared_exported() const;
-
- int LIBSHARED_DEPRECATED_EXPORT libshared_deprecated() const;
-
- int libshared_not_exported() const;
-
- int LIBSHARED_NO_EXPORT libshared_excluded() const;
-};
-
-class LIBSHARED_NO_EXPORT LibsharedExcluded
-{
-public:
- int libshared() const;
-
- int LIBSHARED_EXPORT libshared_exported() const;
-
- int LIBSHARED_DEPRECATED_EXPORT libshared_deprecated() const;
-
- int libshared_not_exported() const;
-
- int LIBSHARED_NO_EXPORT libshared_excluded() const;
-};
-
-LIBSHARED_EXPORT int libshared_exported();
-
-LIBSHARED_DEPRECATED_EXPORT int libshared_deprecated();
-
-int libshared_not_exported();
-
-int LIBSHARED_NO_EXPORT libshared_excluded();
-
-#endif