cmake_minimum_required(VERSION 2.8.4) project(make-builder) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") add_custom_target(make-builder COMMAND make -C ${make-builder_SOURCE_DIR} CLION_EXE_DIR=${PROJECT_BINARY_DIR})