Closed lwyj123 closed 3 years ago
add_subdirectory(${EXTERNAL_DIR}/lunasvg)
target_link_libraries(main lunasvg)
Lemme known if it works :smiley:
add_subdirectory(${EXTERNAL_DIR}/lunasvg) target_link_libraries(main lunasvg)
Lemme known if it works 😃
Thanks for your answer.
If I use this way, I need to build and install the package firstly.
cd lunasvg
mkdir build
cd build
make -j 2
make install
But the other package I used before, I don't need to do that things manually. is the command mentioned above necessary?
No.. You don't need to build lunasvg separately anymore. The main CMakeList.txt will build it for you.
OK, I used this method before but it does't work, I will check this method later again.
@sammycage I just got this error
And I need to run make install
myself
#include <svgdocument.h>
not #include <lunasvg/svgdocument.h>
@sammycage not works.
And I get the include code from https://github.com/sammycage/lunasvg/issues/18, will the usage be different?
Oh, I just updated the submodule, It works. Seems the update https://github.com/sammycage/lunasvg/commit/35cf0a2c986d6dba789e364bff099d394c096e6d change the behavior.
Could you update the documents for later users if you have the time?
I cannot find variables like
LUNASVG_INCLUDE_DIRS
andLUNASVG_LIBRARIES
to use.