linux - How to configure the parameters compiled in the terminal to kdevelop (IDE)?
淡淡烟草味
淡淡烟草味 2017-05-16 13:24:21
0
1
445

I need to use GLPK (linear programming package) under ubuntu. After writing the cpp file, enter

in the command line.
gcc -c sample.cpp
gcc sample.o -lglpk -lm

The a.out executable file is finally generated.
Now I want to execute the above process under kdevelop. How should I set the parameters -lglpk -lm?
Is it written in the makefile?

Thank you all!

淡淡烟草味
淡淡烟草味

reply all(1)
某草草

Add to CMakeLists.txt

include_directories(glpk.h /usr/local/include)
target_link_libraries(d /usr/local/lib/libglpk.a)

Here d is the name of the executable file generated by your project

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!