Import cmaked
[apps/madmutt.git] / CMakeLists.txt
index 33cd4f6..229f832 100644 (file)
@@ -1,10 +1,16 @@
-PROJECT(madmutt C)
+SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
+
+PROJECT(madmutt C D)
 SET(PACKAGE madmutt)
-SET(CMAKE_MODULE_PATH  ${madmutt_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
 
-# TODO {{{
-# USE_SETGID
-# }}}
+# Using Phobos OR Tango (can be specified from cmake command line)
+if (NOT CMAKE_D_USE_PHOBOS AND NOT CMAKE_D_USE_TANGO)
+       # default to phobos
+       message(STATUS "This application can be built with either Phobos or Tango!")
+       message(STATUS "You did not specify a standard library -- defaulting to Phobos.")
+       message(STATUS "If you wish to use Tango add -DCMAKE_D_USE_TANGO=True to cmake command line.")
+       set(CMAKE_D_USE_PHOBOS True)
+endif (NOT CMAKE_D_USE_PHOBOS AND NOT CMAKE_D_USE_TANGO)
 
 INCLUDE(CMakeDetermineCCompiler)
 include(Cpkg2c)