cmake_minimum_required(VERSION 3.24) project(midi_utils C) set(CMAKE_C_STANDARD 11) include_directories(.) add_executable(test-note-names test-note-names.c midi-utils.c midi-utils.h) add_custom_command( TARGET test-note-names POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_HOME_DIRECTORY}/cases.txt" $ )