diff options
author | Brad King <brad.king@kitware.com> | 2012-02-03 20:54:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-02-03 20:55:27 (GMT) |
commit | daa4101619514d2b7eebbce7a73cd2149b7679b8 (patch) | |
tree | bdca5b607446cfddaa7835414a04b86aa6845fcd /Tests/ConvLibrary | |
parent | bb29f2765c0cd752c97862c6eb81975afdcdaed1 (diff) | |
download | CMake-daa4101619514d2b7eebbce7a73cd2149b7679b8.zip CMake-daa4101619514d2b7eebbce7a73cd2149b7679b8.tar.gz CMake-daa4101619514d2b7eebbce7a73cd2149b7679b8.tar.bz2 |
Remove unused test code
We have not run tests with the "como" compiler or enabled the
experimental ConvLibrary test for years.
Diffstat (limited to 'Tests/ConvLibrary')
-rw-r--r-- | Tests/ConvLibrary/CMakeLists.txt | 20 | ||||
-rw-r--r-- | Tests/ConvLibrary/bar.c | 4 | ||||
-rw-r--r-- | Tests/ConvLibrary/bartest.cxx | 37 | ||||
-rw-r--r-- | Tests/ConvLibrary/foo.cxx | 4 | ||||
-rw-r--r-- | Tests/ConvLibrary/sub1/car.cxx | 4 |
5 files changed, 0 insertions, 69 deletions
diff --git a/Tests/ConvLibrary/CMakeLists.txt b/Tests/ConvLibrary/CMakeLists.txt deleted file mode 100644 index afc1cb6..0000000 --- a/Tests/ConvLibrary/CMakeLists.txt +++ /dev/null @@ -1,20 +0,0 @@ -cmake_minimum_required (VERSION 2.6) -project(ConvLibrary) - -# create a source list -set(foo_sources foo.cxx bar.c sub1/car.cxx) -# create a library foo from the sources -add_library(foo ${foo_sources}) -# get the object files from the target -get_target_property(OBJECT_FILES foo OBJECT_FILES) -message("${OBJECT_FILES}") -# set the object files as generated -set_source_files_properties(${OBJECT_FILES} PROPERTIES GENERATED true) -# create a library bar that contains the object files from foo -add_library(bar ${OBJECT_FILES}) -# set the linker language since bar only has .obj -set_target_properties(bar PROPERTIES LINKER_LANGUAGE CXX) -# make sure foo is built before bar -add_dependencies(bar foo) -add_executable(bartest bartest.cxx) -target_link_libraries(bartest bar) diff --git a/Tests/ConvLibrary/bar.c b/Tests/ConvLibrary/bar.c deleted file mode 100644 index d063082..0000000 --- a/Tests/ConvLibrary/bar.c +++ /dev/null @@ -1,4 +0,0 @@ -int bar() -{ - return 20; -} diff --git a/Tests/ConvLibrary/bartest.cxx b/Tests/ConvLibrary/bartest.cxx deleted file mode 100644 index ab95773..0000000 --- a/Tests/ConvLibrary/bartest.cxx +++ /dev/null @@ -1,37 +0,0 @@ -extern "C" int bar(); -int foo(); -int car(); - -#include <stdio.h> -int main() -{ - if(foo() == 10) - { - printf("foo is 10!\n"); - } - else - { - printf("foo is not 10 error!\n"); - return -1; - } - if(bar() == 20) - { - printf("bar is 20!\n"); - } - else - { - printf("bar is not 20 error!\n"); - return -1; - } - if(car() == 30) - { - printf("car is 30!\n"); - } - else - { - printf("car is not 30 error!\n"); - return -1; - } - printf("Test past\n"); - return 0; -} diff --git a/Tests/ConvLibrary/foo.cxx b/Tests/ConvLibrary/foo.cxx deleted file mode 100644 index 1f46ef4..0000000 --- a/Tests/ConvLibrary/foo.cxx +++ /dev/null @@ -1,4 +0,0 @@ -int foo() -{ - return 10; -} diff --git a/Tests/ConvLibrary/sub1/car.cxx b/Tests/ConvLibrary/sub1/car.cxx deleted file mode 100644 index aa66726..0000000 --- a/Tests/ConvLibrary/sub1/car.cxx +++ /dev/null @@ -1,4 +0,0 @@ -int car() -{ - return 30; -} |