From 48cd349c810d5bbe8baf49463e5361c19cc62df5 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 4 Jun 2003 09:02:50 -0400 Subject: fixes for HP --- Tests/CustomCommand/CMakeLists.txt | 4 ++-- Tests/CustomCommand/generator.c | 9 --------- Tests/CustomCommand/generator.cxx | 9 +++++++++ Tests/CustomCommand/wrapper.c | 9 --------- Tests/CustomCommand/wrapper.cxx | 9 +++++++++ 5 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 Tests/CustomCommand/generator.c create mode 100644 Tests/CustomCommand/generator.cxx delete mode 100644 Tests/CustomCommand/wrapper.c create mode 100644 Tests/CustomCommand/wrapper.cxx diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt index 19a8399..4ac86e5 100644 --- a/Tests/CustomCommand/CMakeLists.txt +++ b/Tests/CustomCommand/CMakeLists.txt @@ -20,7 +20,7 @@ SET (EXECUTABLE_OUTPUT_PATH # ################################################################ # add the executable that will generate the file -ADD_EXECUTABLE(generator generator.c) +ADD_EXECUTABLE(generator generator.cxx) # the folowing assumes that a cmSourceFile # is instantiated for the output, with GENERATED 1 @@ -37,7 +37,7 @@ ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/generated.c # ################################################################ # add the executable that will generate the file -ADD_EXECUTABLE(wrapper wrapper.c) +ADD_EXECUTABLE(wrapper wrapper.cxx) # the following assumes that a cmSourceFile # is instantiated for the output, with GENERATED 1 diff --git a/Tests/CustomCommand/generator.c b/Tests/CustomCommand/generator.c deleted file mode 100644 index cda3e0f..0000000 --- a/Tests/CustomCommand/generator.c +++ /dev/null @@ -1,9 +0,0 @@ -#include - -main(int argc, char *argv[]) -{ - FILE *fp = fopen(argv[1],"w"); - - fprintf(fp,"int generated() { return 3; }\n"); - fclose(fp); -} diff --git a/Tests/CustomCommand/generator.cxx b/Tests/CustomCommand/generator.cxx new file mode 100644 index 0000000..0cb70db --- /dev/null +++ b/Tests/CustomCommand/generator.cxx @@ -0,0 +1,9 @@ +#include + +int main(int argc, char *argv[]) +{ + FILE *fp = fopen(argv[1],"w"); + + fprintf(fp,"int generated() { return 3; }\n"); + fclose(fp); +} diff --git a/Tests/CustomCommand/wrapper.c b/Tests/CustomCommand/wrapper.c deleted file mode 100644 index 0ed4b76..0000000 --- a/Tests/CustomCommand/wrapper.c +++ /dev/null @@ -1,9 +0,0 @@ -#include - -main(int argc, char *argv[]) -{ - FILE *fp = fopen(argv[1],"w"); - - fprintf(fp,"int wrapped() { return 5; }\n"); - fclose(fp); -} diff --git a/Tests/CustomCommand/wrapper.cxx b/Tests/CustomCommand/wrapper.cxx new file mode 100644 index 0000000..b15f903 --- /dev/null +++ b/Tests/CustomCommand/wrapper.cxx @@ -0,0 +1,9 @@ +#include + +int main(int argc, char *argv[]) +{ + FILE *fp = fopen(argv[1],"w"); + + fprintf(fp,"int wrapped() { return 5; }\n"); + fclose(fp); +} -- cgit v0.12