Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #11362 from alucryd/feat/system-libmgba
try for system libmgba first
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| find_path(LIBMGBA_INCLUDE_DIR flags.h PATH_SUFFIXES mgba) | ||
| find_library(LIBMGBA_LIBRARY mgba) | ||
| mark_as_advanced(LIBMGBA_INCLUDE_DIR LIBMGBA_LIBRARY) | ||
|
|
||
| include(FindPackageHandleStandardArgs) | ||
| find_package_handle_standard_args(LIBMGBA DEFAULT_MSG | ||
| LIBMGBA_INCLUDE_DIR LIBMGBA_LIBRARY) | ||
|
|
||
| if(LIBMGBA_FOUND AND NOT mGBA::mgba) | ||
| add_library(mGBA::mgba UNKNOWN IMPORTED) | ||
| set_target_properties(mGBA::mgba PROPERTIES | ||
| IMPORTED_LOCATION "${LIBMGBA_LIBRARY}" | ||
| INTERFACE_INCLUDE_DIRECTORIES "${LIBMGBA_INCLUDE_DIR}" | ||
| ) | ||
| endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters