Add initial support for python bindings
[alexxy/gromacs.git] / cmake / gmxDetectTargetArchitecture.cmake
index e888732e77058f43c8a9c17d15e5c7228a64148a..2a188c77b30f443474151d6b9196ea556f8ca1b4 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2013, by the GROMACS development team, led by
+# Copyright (c) 2013,2014, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -34,7 +34,7 @@
 
 # - Define function to detect whether the compiler's target
 # - architecture is one for which GROMACS has special treatment
-# - (e.g. kernel acceleration)
+#   (e.g. SIMD instructions)
 #
 # Sets GMX_TARGET_X86 or GMX_TARGET_BGQ if targetting that
 # architecture. May set other such variables if/when there is future
@@ -49,4 +49,12 @@ function(gmx_detect_target_architecture)
         try_compile(GMX_TARGET_BGQ ${CMAKE_BINARY_DIR}
             "${CMAKE_SOURCE_DIR}/cmake/TestBlueGeneQ.c")
     endif()
+    if (NOT DEFINED GMX_TARGET_MIC)
+        try_compile(GMX_TARGET_MIC ${CMAKE_BINARY_DIR}
+            "${CMAKE_SOURCE_DIR}/cmake/TestMIC.c")
+    endif()
+    if (NOT DEFINED GMX_TARGET_FUJITSU_SPARC64)
+        try_compile(GMX_TARGET_FUJITSU_SPARC64 ${CMAKE_BINARY_DIR}
+            "${CMAKE_SOURCE_DIR}/cmake/TestFujitsuSparc64.c")
+    endif()
 endfunction()