I need to use some makefile dependencies analog for cmake
hello: if_this_file_changes.cpp if_this_file_changes.txt
run_some_command
basically , when I build it, I want to check if these files have changed (whenever there is a change in any of these files)? And if so, then call a command {some command like TOUCH or some script} And if files have not changed do nothing
cmake_minimum_required(VERSION 3.21)
project(ProjectName)
///////////////////////////////////
if this files have been changed
run command
////////////////////////
add_executable(hello source.cpp)
#simple example what I want to do