#Uncomment the following two lines to compile the sources as an individual cmake porject. Change the as you wanted. #cmake_minimum_required(VERSION 3.15.2) #project() #Set executable name here set(name g3d) aux_source_directory(. "${name}_src") add_executable(${name} ${${name}_src}) set_target_properties(${name} PROPERTIES CXX_STANDARD 11) set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) install(TARGETS ${name} RUNTIME DESTINATION sbin)