[cmake-commits] king committed CMakeLists.txt 1.1 1.2
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
In directory public:/mounts/ram/cvs-serv2526
Modified Files:
CMakeLists.txt
Log Message:
ENH: Configure location of plugin files so that the executable can run with any current working directory.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Plugin/CMakeLists.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CMakeLists.txt 17 Apr 2007 17:43:02 -0000 1.1
+++ CMakeLists.txt 17 Apr 2007 17:52:50 -0000 1.2
@@ -11,6 +11,13 @@
SET(KWSYS_HEADER_ROOT ${Plugin_BINARY_DIR}/include)
SET(KWSYS_USE_DynamicLoader 1)
ADD_SUBDIRECTORY(${Plugin_SOURCE_DIR}/../../Source/kwsys src/kwsys)
+
+# Configure the location of plugins.
+CONFIGURE_FILE(${Plugin_SOURCE_DIR}/src/example_exe.h.in
+ ${Plugin_BINARY_DIR}/include/example_exe.h @ONLY)
+
+# We need to include headers from the source tree and configured
+# headers in the build tree.
INCLUDE_DIRECTORIES(
${Plugin_BINARY_DIR}/include
${Plugin_SOURCE_DIR}/include
More information about the Cmake-commits
mailing list