X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;ds=sidebyside;f=CMakeLists.txt;h=87e95241934519698802ea785e6ca26f666722f4;hb=21e268b48ee81f0daa1d58979558d4bf12dc72c8;hp=71105b2874c8070f57c00b813809b92f56d85156;hpb=7d7a89c4601d30c4ffbeffc786dbc61960732167;p=unres.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 71105b2..87e9524 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,10 +90,25 @@ if (MPIF_FOUND) message("MPIF_INCLUDE_DIRECTORIES=${MPIF_INCLUDE_DIRECTORIES}" ) endif(MPIF_FOUND) + + +#====================================== +# Detect system architecture +# + +if( CMAKE_SIZEOF_VOID_P EQUAL 4 ) + set(architektura "32") +else (CMAKE_SIZEOF_VOID_P EQUAL 4) + set(architektura "64") +endif( CMAKE_SIZEOF_VOID_P EQUAL 4 ) + +message("Detected ${architektura}-bit architecture") + + #======================================= # Create diractories for build targets #======================================= -execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/bin/unres/MD ) +#execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/bin/unres/MD ) #======================================= # Add source files @@ -105,4 +120,5 @@ if(UNRES_WITH_MPI) add_subdirectory(source/unres/src_MD-M) endif() +add_subdirectory(source/unres/src_MIN)