IF(NOT BUILD_TYPE_TARGETS_INIT)
  ADD_CUSTOM_TARGET(set_debug ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE:STRING=debug ${CMAKE_CURRENT_SOURCE_DIR})
  ADD_CUSTOM_TARGET(set_release ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE:STRING=release ${CMAKE_CURRENT_SOURCE_DIR})
  ADD_CUSTOM_TARGET(show_build echo ${CMAKE_BUILD_TYPE})
  SET(BUILD_TYPE_TARGETS_INIT 1)
ENDIF(NOT BUILD_TYPE_TARGETS_INIT)
