-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[build] CMake: install raylib-config.cmake #471
Comments
Could it be |
It's a convention, but CMake also accepts |
ok, I prefer this option, I always name files in lower-case convention... |
The |
@a3f what's the state of this issue? could it be closed? |
We don't yet provide a `raylib-config.cmake`. I would leave this issue open till someone implements it...
…On Fri, Jul 13, 2018 at 1:05 PM, Ray ***@***.***> wrote:
@a3f <https://github.com/a3f> what's the state of this issue? could it be
closed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#471 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE9pkLOWYmnxc5o1OSsACdNQG8NEtwiTks5uGH8HgaJpZM4SI4_4>
.
|
Remove that link_libraries_to_executable() hack and defines a proper raylib target that can be used with target_link_libraries. The same target is also available for external (user) code by using find_package(raylib). This results in: - Remove hardcoded build directories from examples and games CMakeLists.txt - Allow rlgl_standalone and other special examples to be built easily - Allow CMake projects to find_package(raylib instead of fiddling with pkg-config - Makes code a little more maintainable - Fixes raysan5#471, raysan5#606. - Makes code less confusing by removing the double use of PLATFORM (raysan5#584). Note that this is still not _The Right Way_(TM), because normally raylib-config.cmake (or its includes) would be automatically generated. I didn't manage to get that to work though, so I went the easier route of just wrapping pkg_check_modules for consumption by find_package.
Remove that link_libraries_to_executable() hack and defines a proper raylib target that can be used with target_link_libraries. The same target is also available for external (user) code by using find_package(raylib). This results in: - Remove hardcoded build directories from examples and games CMakeLists.txt - Allow rlgl_standalone and other special examples to be built easily - Allow CMake projects to find_package(raylib instead of fiddling with pkg-config - Makes code a little more maintainable - Fixes raysan5#471, raysan5#606. - Makes code less confusing by removing the double use of PLATFORM (raysan5#584). Note that this is still not _The Right Way_(TM), because normally raylib-config.cmake (or its includes) would be automatically generated. I didn't manage to get that to work though, so I went the easier route of just wrapping pkg_check_modules for consumption by find_package.
Remove that link_libraries_to_executable() hack and defines a proper raylib target that can be used with target_link_libraries. The same target is also available for external (user) code by using find_package(raylib). This results in: - Remove hardcoded build directories from examples and games CMakeLists.txt - Allow rlgl_standalone and other special examples to be built easily - Allow CMake projects to find_package(raylib instead of fiddling with pkg-config - Makes code a little more maintainable - Fixes raysan5#471, raysan5#606. - Makes code less confusing by removing the double use of PLATFORM (raysan5#584). Note that this is still not _The Right Way_(TM), because normally raylib-config.cmake (or its includes) would be automatically generated. I didn't manage to get that to work though, so I went the easier route of just wrapping pkg_check_modules for consumption by find_package.
Remove that link_libraries_to_executable() hack and defines a proper raylib target that can be used with target_link_libraries. The same target is also available for external (user) code by using find_package(raylib). This results in: - Remove hardcoded build directories from examples and games CMakeLists.txt - Allow rlgl_standalone and other special examples to be built easily - Allow CMake projects to find_package(raylib instead of fiddling with pkg-config - Makes code a little more maintainable - Fixes raysan5#471, raysan5#606. - Makes code less confusing by removing the double use of PLATFORM (raysan5#584). Note that this is still not _The Right Way_(TM), because normally raylib-config.cmake (or its includes) would be automatically generated. I didn't manage to get that to work though, so I went the easier route of just wrapping pkg_check_modules for consumption by find_package.
We already install a
raylib.pc
file for pkg-config, but we probably should also install araylib-config.cmake
, so dependent CMake projects can use it.Documentation: https://cmake.org/cmake/help/git-master/manual/cmake-packages.7.html#creating-packages
The text was updated successfully, but these errors were encountered: