mark_as_advanced(CUSTOM_VERSION_STRING)
if (CUSTOM_VERSION_STRING)
set(PROJECT_VERSION ${CUSTOM_VERSION_STRING})
-endif (CUSTOM_VERSION_STRING)
+endif()
set(LIBRARY_SOVERSION 0)
set(LIBRARY_VERSION ${LIBRARY_SOVERSION}.0.0)
# It is a bit irritating, but this has to be set separately for now!
if(GMX_CPU_ACCELERATION)
# Stay compatible with old Jenkins command line options for specific SIMD acceleration
set(GMX_SIMD "${GMX_CPU_ACCELERATION}" CACHE STRING "SIMD instruction set level and compiler optimization" FORCE)
-endif(GMX_CPU_ACCELERATION)
+endif()
if(NOT GMX_TARGET_MIC)
include(gmxDetectSimd)
if(GMX_DOUBLE)
add_definitions(-DGMX_DOUBLE)
set(PKG_CFLAGS "${PKG_CFLAGS} -DGMX_DOUBLE")
-endif(GMX_DOUBLE)
+endif()
if(GMX_SOFTWARE_INVSQRT)
set(PKG_CFLAGS "${PKG_CFLAGS} -DGMX_SOFTWARE_INVSQRT")
-endif(GMX_SOFTWARE_INVSQRT)
+endif()
# include_directories(${LIBXML2_INCLUDE_DIR})
# set(PKG_XML libxml-2.0)
# set(XML_LIBRARIES ${LIBXML2_LIBRARIES})
-#endif(GMX_XML)
+#endif()
option(GMX_GSL "Add support for gsl" OFF)
if (GMX_GSL)
include_directories(${GSL_INCLUDE_DIR})
set(PKG_GSL gsl)
set(HAVE_LIBGSL 1)
- endif(GSL_FOUND)
-endif (GMX_GSL)
+ endif()
+endif()
option(GMX_X11 "Use X window system" OFF)
if (GMX_X11)
"gmx view will not be available.")
endif()
include_directories(${X11_INCLUDE_DIR})
-endif(GMX_X11)
+endif()
include(ThreadMPI)
set(THREAD_MPI_LIB thread_mpi)
set(PKG_CFLAGS "${PKG_CFLAGS} -DGMX_THREAD_MPI")
set(GMX_MPI 1)
set(MPI_IN_PLACE_EXISTS 1)
-endif(GMX_THREAD_MPI)
+endif()
tmpi_get_source_list(THREAD_MPI_SRC)
# If atomics are manually disabled a define is needed because atomics.h doesn't depend on config.h
if (TMPI_ATOMICS_DISABLED)
if(GMX_GPU)
# now that we have detected the dependencies, do the second configure pass
gmx_gpu_setup()
-endif(GMX_GPU)
+endif()
if(CYGWIN)
set(GMX_CYGWIN 1)
-endif(CYGWIN)
+endif()
if(WIN32 AND NOT CYGWIN)
set(GMX_NATIVE_WINDOWS 1)
message(FATAL_ERROR
"Cannot generate git version information from source tree not under git. "
"Set GMX_GIT_VERSION_INFO=OFF to proceed.")
- endif ()
+ endif()
# We need at least git v1.5.3 be able to parse git's date output. If not
# found or the version is too small, we can't generate version information.
find_package(Git)
gmx_test_xdr(GMX_SYSTEM_XDR)
if(NOT GMX_SYSTEM_XDR)
set(GMX_INTERNAL_XDR 1)
-endif(NOT GMX_SYSTEM_XDR)
+endif()
##################################################
else()
set(PKG_DL_LIBS)
endif()
-endif(GMX_LOAD_PLUGINS)
+endif()
set(VMD_QUIETLY TRUE CACHE INTERNAL "")
# Link real-time library for POSIX timers. The check for clock_gettime
# Math and thread libraries must often come after all others when linking...
if(HAVE_LIBM)
list(APPEND GMX_EXTRA_LIBRARIES m)
-endif(HAVE_LIBM)
+endif()
option(GMX_NACL "Configure for Native Client builds" OFF)
if (GMX_NACL)
set(COREWRAP_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/../corewrap" CACHE STRING
"Path to swindirect.h")
include_directories(${COREWRAP_INCLUDE_DIR})
-endif(GMX_FAHCORE)
+endif()
option(GMX_BUILD_HELP "Build man pages, HTML help, and completions automatically (requires that compiled binaries can be executed on the build host)" OFF)
mark_as_advanced(GMX_BUILD_HELP)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/src/external/boost/boost
DESTINATION ${INCL_INSTALL_DIR}/gromacs/external/boost
COMPONENT development)
- endif ()
+ endif()
endif()
if(GMX_USE_TNG)
# be triggered by using an API against its specification isn't usually
# worth the effort.
add_definitions(-DNDEBUG -DBOOST_DISABLE_ASSERTS -DGMX_DISABLE_ASSERTS)
-endif ()
+endif()
if (BUILD_TESTING)
# "tests" target builds all the separate test binaries.
add_subdirectory(doxygen)
add_subdirectory(share)
add_subdirectory(scripts)
-endif ()
+endif()
add_subdirectory(src)
if (BUILD_TESTING)