message: CMake(Win32): build contour app as console app when built in Debug mode, as GUI app otherwise.
diff: @@ -29,6 +29,7 @@ add_executable(contour ${contour_SRCS})
  target_include_directories(contour PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
  if(WIN32)
  + if (NOT ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug"))
  set_target_properties(contour PROPERTIES
  # Tell MSVC to create a GUI application.
  WIN32_EXECUTABLE ON
  @@ -36,6 +37,7 @@ if(WIN32)
  # Tell MSVC to use main instead of WinMain for Windows subsystem executables.
  LINK_FLAGS "/ENTRY:mainCRTStartup"
  )
  + endif()
  elseif(APPLE)
  set(contour_version "0.1.0_pre")
  set_target_properties(contour PROPERTIES
  