set output directory for your binaries

thanks. Using CMAKE_RUNTIME_OUTPUT_DIRECTORY directly is much better.

this is the corrected version:

if( CMAKE_RUNTIME_OUTPUT_DIRECTORY )
	set( executableOutputPath ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} )
elseif( EXECUTABLE_OUTPUT_PATH )
	set( executableOutputPath ${EXECUTABLE_OUTPUT_PATH} )
else()
	set( executableOutputPath ${CMAKE_CURRENT_BINARY_DIR} )
endif()

I’ll look into libraries and archives when I get there.