Import cmaked
[apps/madmutt.git] / cmake / Modules / CMakeDCompiler.cmake.in
diff --git a/cmake/Modules/CMakeDCompiler.cmake.in b/cmake/Modules/CMakeDCompiler.cmake.in
new file mode 100644 (file)
index 0000000..6d18e3a
--- /dev/null
@@ -0,0 +1,45 @@
+#\r
+# CMakeD - CMake module for D Language\r
+#\r
+# Copyright (c) 2007, Selman Ulug <selman.ulug@gmail.com>\r
+#                     Tim Burrell <tim.burrell@gmail.com>\r
+#\r
+# All rights reserved. \r
+#\r
+# See Copyright.txt for details.\r
+#\r
+# Modified from CMake 2.6.5 CMakeCCompiler.cmake.in\r
+# See http://www.cmake.org/HTML/Copyright.html for details\r
+# \r
+\r
+SET(CMAKE_D_COMPILER "@CMAKE_D_COMPILER@")\r
+SET(CMAKE_D_COMPILER_ARG1 "@CMAKE_D_COMPILER_ARG1@")\r
+SET(CMAKE_AR "@CMAKE_AR@")\r
+SET(CMAKE_RANLIB "@CMAKE_RANLIB@")\r
+SET(CMAKE_COMPILER_IS_GDC @CMAKE_COMPILER_IS_GDC@)\r
+SET(CMAKE_COMPILER_IS_DMD @CMAKE_COMPILER_IS_DMD@)\r
+SET(CMAKE_D_COMPILER_LOADED 1)\r
+SET(CMAKE_COMPILER_IS_MINGW @CMAKE_COMPILER_IS_MINGW@)\r
+SET(CMAKE_COMPILER_IS_CYGWIN @CMAKE_COMPILER_IS_CYGWIN@)\r
+IF(CMAKE_COMPILER_IS_CYGWIN)\r
+  SET(CYGWIN 1)\r
+  SET(UNIX 1)\r
+ENDIF(CMAKE_COMPILER_IS_CYGWIN)\r
+\r
+SET(CMAKE_D_COMPILER_ENV_VAR "DC")\r
+\r
+IF(CMAKE_COMPILER_IS_MINGW)\r
+  SET(MINGW 1)\r
+ENDIF(CMAKE_COMPILER_IS_MINGW)\r
+SET(CMAKE_COMPILER_IS_GDC_RUN 1)\r
+SET(CMAKE_D_SOURCE_FILE_EXTENSIONS d)\r
+SET(CMAKE_D_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)\r
+SET(CMAKE_D_LINKER_PREFERENCE None)\r
+IF(UNIX)\r
+  SET(CMAKE_D_OUTPUT_EXTENSION .o)\r
+ELSE(UNIX)\r
+  SET(CMAKE_D_OUTPUT_EXTENSION .obj)\r
+ENDIF(UNIX)\r
+# save the size of void* in case where cache is removed\r
+# and the this file is still around\r
+#SET(CMAKE_SIZEOF_VOID_P @CMAKE_SIZEOF_VOID_P@)\r