-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake remake #181
base: master
Are you sure you want to change the base?
CMake remake #181
Conversation
Now it is easy to pack library with cpack and use library with: ```cmake find_package(cimgui REQUIRED) target_link_libraries(${PROJECT_NAME} PRIVATE ${CIMGUI_LIBRARIES}) ```
compilation with Freetype gets broken for me, not only for missing If I add
It is only solved by |
For being backward compatible this should be used
As found in https://github.com/cimgui/cimgui/blob/master/backend_test/CMakeLists.txt |
You got compile error when including header file. This is why I added: list(APPEND IMGUI_INCLUDE_DIRS ${FREETYPE_INCLUDE_DIRS}) Did you copied header files to ${CMAKE_PREFIX_PATH} when you was installing Freetype? |
Not working for me
Yes. I did the cmake installation as explained in CMakeLists.txt from freetype: https://github.com/freetype/freetype2.git first: |
@sonoro1234 I got exactly same compile error when tried to add PATHS in find_package. I tried also |
I have been using https://github.com/freetype/freetype2.git with mingw-w64 without MSYS. I used For solving the two issues (find freetype and avoid compile errors) only this is working for me
second line (commented as does not help), |
Now it is easy to pack library with cpack and use library with: