Make torque3d.cmake load all .cmake files from the module folder.

Move option code to each individual module.
This makes it so you can add a new module without having to modify the torque3d.cmake
This commit is contained in:
Scott Przybylski 2014-10-10 23:50:05 -07:00
parent 5103ba22e2
commit f527b45ec2
5 changed files with 73 additions and 80 deletions

View file

@ -20,9 +20,10 @@
# IN THE SOFTWARE.
# -----------------------------------------------------------------------------
option(TORQUE_TESTS_ENABLED "TORQUE_TESTS_ENABLED" OFF)
option(TORQUE_TESTING "Enable unit test module" OFF)
mark_as_advanced(TORQUE_TESTING)
if(TORQUE_TESTS_ENABLED)
if(TORQUE_TESTING)
# Project defines
addDef( "TORQUE_TESTS_ENABLED" )