include(CTest)
enable_testing()
-# Set makefile verbose on
-set( CMAKE_VERBOSE_MAKEFILE 1 )
#======================================
# Fortran compilers stuff
set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None Debug Release." FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "None" "Debug" "Release" )
endif (NOT CMAKE_BUILD_TYPE)
-
+
+
+if (CMAKE_BUILD_TYPE STREQUAL "Release")
+ # Set makefile verbosity off for Release builds
+ set( CMAKE_VERBOSE_MAKEFILE 0 )
+else()
+ # Set makefile verbosity on for other builds
+ set( CMAKE_VERBOSE_MAKEFILE 1 )
+endif (CMAKE_BUILD_TYPE STREQUAL "Release")
+
+# Default Install Path
+
+set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/bin" CACHE PATH "Binary install directory " FORCE)
+
#=======================================
# Set the varous build variables
#=======================================
# used by unres/src_MIN
find_package (Threads)
-
-
-#=======================================
-# Create diractories for build targets
-#=======================================
-#execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/bin/unres/MD )
-
#=======================================
# Add source files
#=======================================