cmake_minimum_required(VERSION 3.5) project(joecpp) add_executable(joecpp src/main.cpp) set(OUTPUT_DEBUG "build/debug") set(OUTPUT_REL "build/release") # Output directory for libraries in Debug configuration set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/${OUTPUT_DEBUG}) # Output directory for libraries in Release configuration set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/${OUTPUT_REL})