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

This commit is contained in:
Marc Chapman 2018-01-23 22:48:20 +00:00
parent af62b5c0a9
commit 745bece52a
2 changed files with 6 additions and 4 deletions

View file

@ -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()

View file

@ -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