[CMake] Adding install dependency to test-target?

Hugo Heden heden at foi.se
Thu Nov 20 04:51:21 EST 2008


Good day all,


Is there any way that I can add 'install' dependency to the 'test'-target?

Doing

  add_dependencies( test install )

does not seem to work:
   CMake Error at ... (ADD_DEPENDENCIES):
      add_dependencies Adding dependency to non-existent target: test


Apparently neither 'test' nor 'install' counts as "top-level-targets"?


Best regards

Hugo Heden
FOI -- Swedish Defence Research Agency



More information about the CMake mailing list