[cmake-commits] king committed example_exe.cxx 1.1 1.2
example_exe.h.in NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Apr 17 13:52:52 EDT 2007
Update of /cvsroot/CMake/CMake/Tests/Plugin/src
In directory public:/mounts/ram/cvs-serv2526/src
Modified Files:
example_exe.cxx
Added Files:
example_exe.h.in
Log Message:
ENH: Configure location of plugin files so that the executable can run with any current working directory.
--- NEW FILE: example_exe.h.in ---
#ifndef example_exe_h
#define example_exe_h
#define EXAMPLE_EXE_PLUGIN_DIR "@CMAKE_LIBRARY_OUTPUT_DIRECTORY@"
#endif
Index: example_exe.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Plugin/src/example_exe.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- example_exe.cxx 17 Apr 2007 17:43:03 -0000 1.1
+++ example_exe.cxx 17 Apr 2007 17:52:50 -0000 1.2
@@ -1,5 +1,7 @@
#include <example.h>
+#include <example_exe.h>
+
#include <kwsys/DynamicLoader.hxx>
#include <kwsys/ios/iostream>
#include <kwsys/stl/string>
@@ -21,7 +23,7 @@
int main()
{
- kwsys_stl::string libName = "lib/plugin" CONFIG_DIR "/";
+ kwsys_stl::string libName = EXAMPLE_EXE_PLUGIN_DIR CONFIG_DIR "/";
libName += kwsys::DynamicLoader::LibPrefix();
libName += "example_mod_1";
libName += kwsys::DynamicLoader::LibExtension();
More information about the Cmake-commits
mailing list