develop
Petr Mrázek 2009-10-31 18:18:59 +00:00
parent 78ec035f02
commit 0853ce83ff
6 changed files with 7 additions and 2 deletions

@ -44,7 +44,7 @@ SET_SOURCE_FILES_PROPERTIES( ${PROJECT_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE )
LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS}) LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS})
SET( MEMXML_DATA_PATH ${CMAKE_INSTALL_PREFIX} CACHE PATH "search path for Memory.xml") SET( MEMXML_DATA_PATH . CACHE PATH "search path for Memory.xml")
# OPTION( VARIABLE "Description" Initial state) # OPTION( VARIABLE "Description" Initial state)
#OPTION( WITH_FOO "Enable FOO support" ON ) #OPTION( WITH_FOO "Enable FOO support" ON )
#OPTION( WITH_BAR "Enable BAR component" OFF ) #OPTION( WITH_BAR "Enable BAR component" OFF )

@ -64,10 +64,11 @@ int main (void)
time(&end); time(&end);
time_diff = difftime(end, start); time_diff = difftime(end, start);
DF.Detach();
cout << "attach tests done in " << time_diff << " seconds." << endl; cout << "attach tests done in " << time_diff << " seconds." << endl;
cout << "Press any key to continue" << endl; cout << "Press any key to continue" << endl;
cin.ignore(); cin.ignore();
delete pDF; delete pDF;
return 0; return 0;
} }

@ -47,6 +47,7 @@ int main (void)
} }
} }
} }
DF.Detach();
delete pDF; delete pDF;
cout << "Done. Press any key to continue" << endl; cout << "Done. Press any key to continue" << endl;
cin.ignore(); cin.ignore();

@ -57,6 +57,7 @@ int main (void)
} }
} }
} }
DF.Detach();
time(&end); time(&end);
time_diff = difftime(end, start); time_diff = difftime(end, start);
cout << num_blocks << " blocks read" << endl; cout << num_blocks << " blocks read" << endl;

@ -170,6 +170,7 @@ int main (int argc, const char* argv[])
{ {
cout << stonetypes[p->first].id << " : " << p->second << endl; cout << stonetypes[p->first].id << " : " << p->second << endl;
} }
DF.Detach();
cin.ignore(); cin.ignore();
delete pDF; delete pDF;
return 0; return 0;

@ -47,6 +47,7 @@ int main (void)
} }
} }
} }
DF.Detach();
delete pDF; delete pDF;
cout << "Done. Press any key to continue" << endl; cout << "Done. Press any key to continue" << endl;
cin.ignore(); cin.ignore();