浏览代码

cmake: Fix Interrogate installation so that runtime paths are properly removed.

Sam Edwards 11 年之前
父节点
当前提交
a26df45c38
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      cmake/macros/Interrogate.cmake

+ 3 - 1
cmake/macros/Interrogate.cmake

@@ -289,6 +289,8 @@ function(add_python_module module)
       set_target_properties(${module} PROPERTIES SUFFIX ".pyd")
       set_target_properties(${module} PROPERTIES SUFFIX ".pyd")
     endif()
     endif()
 
 
+    install(TARGETS ${module} DESTINATION "${PYTHON_ARCH_INSTALL_DIR}/panda3d")
+
     list(APPEND ALL_INTERROGATE_MODULES "${module}")
     list(APPEND ALL_INTERROGATE_MODULES "${module}")
     set(ALL_INTERROGATE_MODULES "${ALL_INTERROGATE_MODULES}" CACHE INTERNAL "Internal variable")
     set(ALL_INTERROGATE_MODULES "${ALL_INTERROGATE_MODULES}" CACHE INTERNAL "Internal variable")
   endif()
   endif()
@@ -302,5 +304,5 @@ if(HAVE_PYTHON)
 
 
   # The Interrogate path needs to be installed to the architecture-dependent
   # The Interrogate path needs to be installed to the architecture-dependent
   # Python directory.
   # Python directory.
-  install(DIRECTORY "${PROJECT_BINARY_DIR}/panda3d" DESTINATION "${PYTHON_ARCH_INSTALL_DIR}")
+  install(FILES "${PROJECT_BINARY_DIR}/panda3d/__init__.py" DESTINATION "${PYTHON_ARCH_INSTALL_DIR}/panda3d")
 endif()
 endif()