6

In most IDEs (e.g. Visual Studio, all the java IDEs, etc) by default the sources are build when the user selects to execute or debug the application. How can I configure KDevelop to do the same?

Grzenio
  • 35,875
  • 47
  • 158
  • 240

1 Answers1

8

Go to the Run->Launch Configurations menu item.

There you can configure a launch configuration, with arguments, working directory, etc.

At the bottom, there is a dependencies block, where you can specify a build target that should be run before the execution of the launch configuration.

Tom Macdonald
  • 6,433
  • 7
  • 39
  • 59
  • What should I put as the build target? I have a CMake project, but when I selected the main CMakeList.txt file, the system complained. – Grzenio Feb 14 '13 at 13:32
  • 1
    Ok. Your CMakeLists.txt should declare several targets, usually in the target_link_libraries step. These targets should come up in the launch configuration. – Tom Macdonald Feb 14 '13 at 13:59