How to build a C++ project into the same folder as the source file's in KDevelop -
How to build a C++ project into the same folder as the source file's in KDevelop -
suppose i'm writing code read file , printing content, , i'm modifying content need visible projects tool view. problem kdevelop forces me build code in separate folder (i.e. build folder). project construction goes this.
--> project folder | --> code.cpp --> file.txt --> build | --> code (exe file)
now building , executing project won't work expected, because file.txt
not beside executable file, can't read content.
moving file.txt
build folder won't work exclude projects tool view in kdevelop (i.e. can't access file left pane in kdevelop).
creating shortcut of file.txt , moving build folder file besides source code, , shortcut in build folder it, every time want rename file, need create new shortcut or rename 1 in build folder.
what should do? think can handled 1 of 2 ways.
building project in same folder source code , file.txt. kdevelop won't allow me producing error message the selected build directory not empty
.
allowing me add together text file projects tool view without beingness physically within project folder. way can create file within build folder, , access or modify projects tool view, seems there's no alternative in kdevelop.
are there suggestions? i've tried qtcreator , allows me both.
the usual way handle case utilize additional install step after building. in step final binaries build directory , additional files source directory copied 3rd location.
how achieved depends on build scheme employ.
installing files cmake installing files qmake c++ kdevelop
Comments
Post a Comment