c++ - Creating a Makefile that includes a header only library -


this first c++ program, , first time creating makefile im unfamiliar all.

i have main file raytracer.cpp includes glm library this:

#include "glm/glm.hpp" 

raytracer.cpp , glm directory in the same directory.

how can create makefile project?

the glm library header library. have compile files in glm directory? or glm.hpp?

if, , if, code in header , nothing defined in corresponding source, don't have specify in makefile, rule raytracer.cpp. header code automatically inserted include statement is. have specify if need other objects or shared objects (libraries in .so .a etc.) included)

for more information how create simple makefiles see here:how make simple c++ makefile?


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -