Jelajahi Sumber

Phase 3: Adjust cmake files to add #define to torque config

Marc Chapman 7 tahun lalu
induk
melakukan
745bece52a
2 mengubah file dengan 6 tambahan dan 4 penghapusan
  1. 3 4
      Tools/CMake/modules/module_afx.cmake
  2. 3 0
      Tools/CMake/torqueConfig.h.in

+ 3 - 4
Tools/CMake/modules/module_afx.cmake

@@ -20,8 +20,7 @@
 # IN THE SOFTWARE.
 # -----------------------------------------------------------------------------
 
-option(TORQUE_AFX "Enable AFX module" ON)
-if(TORQUE_AFX)
-# files
-addPathRec( "${srcDir}/afx" )
+option(TORQUE_AFX_ENABLED "Enable AFX module" ON)
+if(TORQUE_AFX_ENABLED)
+	addPathRec( "${srcDir}/afx" )
 endif()

+ 3 - 0
Tools/CMake/torqueConfig.h.in

@@ -41,6 +41,9 @@
 /// Human readable application version string.
 #define TORQUE_APP_VERSION_STRING  "@TORQUE_APP_VERSION_STRING@"
 
+/// Define me if you want to enable Arcane FX support.
+#cmakedefine TORQUE_AFX_ENABLED
+
 /// Define me if you want to enable multithreading support.
 #cmakedefine TORQUE_MULTITHREAD