Where to set CUDA_ARCHITECTURES variable?

Hi
I am using CMAKE version 3.21.3
And want to set CMake CUDA_ARCHITECTURES variables with the commands

set_property(TARGET myTarget PROPERTY CUDA_ARCHITECTURES 35 50 72)
target_link_libraries(FortranCInterface PUBLIC myTarget)

I don’t know which file should contain these commands, also what should I do afterwards to make it work?

Regards
Sharmin

Cc: @robert.maynard

Those commands need to go into the CMakeLists.txt that creates the myTarget target ( just after the add_library or add_executable of said target).