gumbo-query icon indicating copy to clipboard operation
gumbo-query copied to clipboard

Where is <gumbo.h> located at in the src folder? i have my own cmake workspace and just need the source code

Open ghost opened this issue 4 years ago • 3 comments

ghost avatar Sep 13 '20 17:09 ghost

Do i need this one? https://github.com/google/gumbo-parser/blob/master/src/gumbo.h

ghost avatar Sep 13 '20 17:09 ghost

Found the solution. Install gumbo parser through your own pkg manager (for me it is pacman), find the static library "/usr/lib/libgumbo.so" and than target link it like

include_directories(${Gumbo_INCLUDE_DIRS})

ADD_LIBRARY(gumbo_lib STATIC IMPORTED) SET_TARGET_PROPERTIES(gumbo_lib PROPERTIES IMPORTED_LOCATION /usr/lib/libgumbo.so)

target_link_libraries( ${MAIN_EXE_NAME} gumbo_lib )

ghost avatar Sep 13 '20 18:09 ghost

That isn't a static library. It is a shared library.

cppcooper avatar Nov 14 '21 19:11 cppcooper