Pārlūkot izejas kodu

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

Marc Chapman 7 gadi atpakaļ
vecāks
revīzija
745bece52a

+ 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