CMakeLists.txt 180 B

12345
  1. project(Custom)
  2. add_custom_target(custom_tgt COMMAND ${CMAKE_COMMAND} -E echo "Building custom_tgt")
  3. add_executable(custom_exe ../empty.c)
  4. add_dependencies(custom_exe custom_tgt)