Force cmake variables externally12/6/2023 ![]() This module tries to find the base Corrade library and then defines the following: If you want to disable this behavior altogether and keep all executables and libraries in their implicit locations, set those variables to an empty string (as opposed to nothing at all, which is the same as if the variable is not set) - Corrade will detect and respect that: # I'm happy with having binaries scattered around the build dir set ( CMAKE_RUNTIME_OUTPUT_DIRECTORY "" ) set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY "" ) set ( CMAKE_ARCHIVE_OUTPUT_DIRECTORY "" ) add_subdirectory ( corrade EXCLUDE_FROM_ALL ) Finding the package and its componentsīasic usage is: find_package ( Corrade REQUIRED ) The main logic is in the FindCorrade.cmake module distributed with the engine in the modules/ directory, you are encouraged to copy it into your project and add path to the file to CMAKE_MODULE_PATH: # Path where FindCorrade.cmake can be found, adapt as needed set ( CMAKE_MODULE_PATH "$_OUTPUT_DIRECTORY, those will get used instead (and you can also set your own output directories after the add_subdirectory () call, which will make Corrade keep the above). Using Corrade that was externally built and installed Find corresponding DLLs for library filesĬorrade uses CMake as a primary build system for both building and integration into your projects.Compile data resources into application binary. ![]() Add unit test using Corrade's TestSuite.Using Corrade that was externally built and installed.Guide how to find and use Corrade with CMake build system.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |