1# Set up our directory structure for output libraries and binaries
2if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
3  set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
4endif()
5if(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
6  if(UNIX)
7    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
8  else()
9    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
10  endif()
11endif()
12