projects
/
unres.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed install binary paths
[unres.git]
/
source
/
unres
/
src_CSA
/
CMakeLists.txt
diff --git
a/source/unres/src_CSA/CMakeLists.txt
b/source/unres/src_CSA/CMakeLists.txt
index
a86da86
..
5b8d334
100644
(file)
--- 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")
#=========================================
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} )
# 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})
#=========================================
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})
#=========================================
#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 )
#=========================================
#target_link_libraries( ${UNRES_BIN} xdrf )
#=========================================
+# Install Path
+#=========================================
+install(TARGETS UNRES_BIN-CSA DESTINATION ${CMAKE_INSTALL_PREFIX}/unres/CSA)
+
+
+#=========================================
# TESTS
#=========================================
# TESTS
#=========================================