X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc_CSA%2FCMakeLists.txt;h=d3db0810c5dc3c73bd7b0cf772dae706b8ffbfe4;hb=76bcdcd9a8e98434a28acfbd1654c7e78c54b2f4;hp=a86da8637b4356a145a828c512cc6615c8fd6e11;hpb=5f331e648636da48baee4467989f411fb3d8af24;p=unres.git diff --git a/source/unres/src_CSA/CMakeLists.txt b/source/unres/src_CSA/CMakeLists.txt index a86da86..d3db081 100644 --- a/source/unres/src_CSA/CMakeLists.txt +++ b/source/unres/src_CSA/CMakeLists.txt @@ -177,6 +177,13 @@ endif (Fortran_COMPILER_NAME STREQUAL "ifort") #========================================= set(CPPFLAGS "${CPPFLAGS} -DMP -DMPI") +#========================================= +# add 64-bit specific preprocessor flags +#========================================= +if (architektura STREQUAL "64") + set(CPPFLAGS "${CPPFLAGS} -DAMD64") +endif (architektura STREQUAL "64") + # Apply preprocesor flags to *.F files set_property(SOURCE ${UNRES_CSA_PP_SRC} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS} ) @@ -228,8 +235,7 @@ set(UNRES_CSA_SRCS ${UNRES_CSA_SRC0} ${UNRES_CSA_SRC3} ${CMAKE_CURRENT_BINARY_DI #========================================= add_executable(UNRES_BIN-CSA ${UNRES_CSA_SRCS} ) set_target_properties(UNRES_BIN-CSA PROPERTIES OUTPUT_NAME ${UNRES_BIN}) - -#set_property(TARGET ${UNRES_BIN} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/unres/MD ) +set_property(TARGET UNRES_BIN-CSA PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin ) #add_dependencies (${UNRES_BIN} ${UNRES_XDRFLIB}) #========================================= @@ -241,6 +247,12 @@ target_link_libraries( UNRES_BIN-CSA ${MPI_Fortran_LIBRARIES} ) #target_link_libraries( ${UNRES_BIN} xdrf ) #========================================= +# Install Path +#========================================= +install(TARGETS UNRES_BIN-CSA DESTINATION ${CMAKE_INSTALL_PREFIX}) + + +#========================================= # TESTS #=========================================