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?
Asked
Active
Viewed 3,331 times
1 Answers
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
-
1Ok. 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