浏览代码

Help from Az finally gave the correct answer to the problem I was trying to address originally, so really this fix is from Az.
Exposes the directory for where your game files go in cmake without having to go to Advanced tab.

Joseph 4 年之前
父节点
当前提交
fe9dc1e25b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Tools/CMake/basics.cmake

+ 1 - 1
Tools/CMake/basics.cmake

@@ -32,7 +32,7 @@ if(NOT TORQUE_TEMPLATE)
     set(TORQUE_TEMPLATE "BaseGame" CACHE STRING "the template to use")
     set(TORQUE_TEMPLATE "BaseGame" CACHE STRING "the template to use")
 endif()
 endif()
 if(NOT TORQUE_APP_DIR)
 if(NOT TORQUE_APP_DIR)
-    set(TORQUE_APP_DIR "${CMAKE_BINARY_DIR}")
+    set(TORQUE_APP_DIR "${CMAKE_SOURCE_DIR}/My Projects/${TORQUE_APP_NAME}" CACHE STRING "final installation location")
 endif()
 endif()
 if(NOT projectOutDir)
 if(NOT projectOutDir)
     set(projectOutDir "${TORQUE_APP_DIR}/game")
     set(projectOutDir "${TORQUE_APP_DIR}/game")