4 changed files with 0 additions and 218 deletions
@ -1,65 +0,0 @@
|
||||
# - Try to find mad |
||||
# You can set MAD_ROOT to specify a certain directory to look in first. |
||||
# Once done this will define |
||||
# MAD_FOUND - System has mad |
||||
# MAD_INCLUDE_DIRS - The mad include directories |
||||
# MAD_LIBRARIES - The libraries needed to use mad |
||||
# Unless we are unable to find ZLIB |
||||
# It also adds an imported target named `3ds::mad`, Linking against it is |
||||
# equivalent to: |
||||
# target_link_libraries(mytarget ${MAD_LIBRARIES}) |
||||
# target_include_directories(mytarget PRIVATE ${MAD_INCLUDE_DIRS}) |
||||
|
||||
if(NOT N3DS) |
||||
message(FATAL_ERROR "This module can only be used if you are using the 3DS toolchain file. Please erase this build directory or create another one, and then use -DCMAKE_TOOLCHAIN_FILE=DevkitArm3DS.cmake when calling cmake for the 1st time. For more information, see the Readme.md for more information.") |
||||
endif() |
||||
|
||||
if(MAD_INCLUDE_DIR) |
||||
# Already in cache, be silent |
||||
set(MAD_FIND_QUIETLY TRUE) |
||||
endif(MAD_INCLUDE_DIR) |
||||
|
||||
include(LibFindMacros) |
||||
include(try_add_imported_target) |
||||
|
||||
#libfind_package(MAD) |
||||
|
||||
set(_MAD_SEARCHES) |
||||
|
||||
# Search MAD_ROOT first if it is set. |
||||
if(MAD_ROOT) |
||||
set(_MAD_SEARCH_ROOT |
||||
PATHS ${MAD_ROOT} |
||||
NO_DEFAULT_PATH |
||||
NO_CMAKE_FIND_ROOT_PATH) |
||||
list(APPEND _MAD_SEARCHES _MAD_SEARCH_ROOT) |
||||
endif() |
||||
|
||||
# Search below ${DEVKITPRO}, ${DEVKITARM}, portlibs (if enabled) etc. |
||||
set(_MAD_SEARCH_NORMAL |
||||
PATHS / |
||||
NO_DEFAULT_PATH |
||||
ONLY_CMAKE_FIND_ROOT_PATH) |
||||
list(APPEND _MAD_SEARCHES _MAD_SEARCH_NORMAL) |
||||
|
||||
foreach(search ${_MAD_SEARCHES}) |
||||
find_path(MAD_INCLUDE_DIR NAMES mad.h |
||||
${${search}} |
||||
PATH_SUFFIXES include) |
||||
find_library(MAD_LIBRARY NAMES mad libmad.a |
||||
${${search}} |
||||
PATH_SUFFIXES lib) |
||||
endforeach() |
||||
|
||||
#find_library(LIBM_LIBRARY NAMES m libm.a |
||||
# PATHS / /arm-none-eabi |
||||
# PATH_SUFFIXES lib/armv6k/fpu) |
||||
|
||||
set(LIBM_LIBRARY m) |
||||
|
||||
set(MAD_PROCESS_INCLUDES MAD_INCLUDE_DIR) |
||||
set(MAD_PROCESS_LIBS MAD_LIBRARY LIBM_LIBRARY) |
||||
|
||||
libfind_process(MAD) |
||||
|
||||
try_add_imported_target(MAD m) |
||||
@ -1,65 +0,0 @@
|
||||
# - Try to find mikmod |
||||
# You can set MIKMOD_ROOT to specify a certain directory to look in first. |
||||
# Once done this will define |
||||
# MIKMOD_FOUND - System has mikmod |
||||
# MIKMOD_INCLUDE_DIRS - The mikmod include directories |
||||
# MIKMOD_LIBRARIES - The libraries needed to use mikmod |
||||
# Unless we are unable to find ZLIB |
||||
# It also adds an imported target named `3ds::mikmod`, Linking against it is |
||||
# equivalent to: |
||||
# target_link_libraries(mytarget ${MIKMOD_LIBRARIES}) |
||||
# target_include_directories(mytarget PRIVATE ${MIKMOD_INCLUDE_DIRS}) |
||||
|
||||
if(NOT N3DS) |
||||
message(FATAL_ERROR "This module can only be used if you are using the 3DS toolchain file. Please erase this build directory or create another one, and then use -DCMAKE_TOOLCHAIN_FILE=DevkitArm3DS.cmake when calling cmake for the 1st time. For more information, see the Readme.md for more information.") |
||||
endif() |
||||
|
||||
if(MIKMOD_INCLUDE_DIR) |
||||
# Already in cache, be silent |
||||
set(MIKMOD_FIND_QUIETLY TRUE) |
||||
endif(MIKMOD_INCLUDE_DIR) |
||||
|
||||
include(LibFindMacros) |
||||
include(try_add_imported_target) |
||||
|
||||
#libfind_package(MIKMOD) |
||||
|
||||
set(_MIKMOD_SEARCHES) |
||||
|
||||
# Search MIKMOD_ROOT first if it is set. |
||||
if(MIKMOD_ROOT) |
||||
set(_MIKMOD_SEARCH_ROOT |
||||
PATHS ${MIKMOD_ROOT} |
||||
NO_DEFAULT_PATH |
||||
NO_CMAKE_FIND_ROOT_PATH) |
||||
list(APPEND _MIKMOD_SEARCHES _MIKMOD_SEARCH_ROOT) |
||||
endif() |
||||
|
||||
# Search below ${DEVKITPRO}, ${DEVKITARM}, portlibs (if enabled) etc. |
||||
set(_MIKMOD_SEARCH_NORMAL |
||||
PATHS / |
||||
NO_DEFAULT_PATH |
||||
ONLY_CMAKE_FIND_ROOT_PATH) |
||||
list(APPEND _MIKMOD_SEARCHES _MIKMOD_SEARCH_NORMAL) |
||||
|
||||
foreach(search ${_MIKMOD_SEARCHES}) |
||||
find_path(MIKMOD_INCLUDE_DIR NAMES mikmod.h |
||||
${${search}} |
||||
PATH_SUFFIXES include) |
||||
find_library(MIKMOD_LIBRARY NAMES mikmod libmikmod.a |
||||
${${search}} |
||||
PATH_SUFFIXES lib) |
||||
endforeach() |
||||
|
||||
#find_library(LIBM_LIBRARY NAMES m libm.a |
||||
# PATHS / /arm-none-eabi |
||||
# PATH_SUFFIXES lib/armv6k/fpu) |
||||
|
||||
set(LIBM_LIBRARY m) |
||||
|
||||
set(MIKMOD_PROCESS_INCLUDES MIKMOD_INCLUDE_DIR) |
||||
set(MIKMOD_PROCESS_LIBS MIKMOD_LIBRARY LIBM_LIBRARY) |
||||
|
||||
libfind_process(MIKMOD) |
||||
|
||||
try_add_imported_target(MIKMOD m) |
||||
@ -1,65 +0,0 @@
|
||||
# - Try to find ogg |
||||
# You can set OGG_ROOT to specify a certain directory to look in first. |
||||
# Once done this will define |
||||
# OGG_FOUND - System has ogg |
||||
# OGG_INCLUDE_DIRS - The ogg include directories |
||||
# OGG_LIBRARIES - The libraries needed to use ogg |
||||
# Unless we are unable to find ZLIB |
||||
# It also adds an imported target named `3ds::ogg`, Linking against it is |
||||
# equivalent to: |
||||
# target_link_libraries(mytarget ${OGG_LIBRARIES}) |
||||
# target_include_directories(mytarget PRIVATE ${OGG_INCLUDE_DIRS}) |
||||
|
||||
if(NOT N3DS) |
||||
message(FATAL_ERROR "This module can only be used if you are using the 3DS toolchain file. Please erase this build directory or create another one, and then use -DCMAKE_TOOLCHAIN_FILE=DevkitArm3DS.cmake when calling cmake for the 1st time. For more information, see the Readme.md for more information.") |
||||
endif() |
||||
|
||||
if(OGG_INCLUDE_DIR) |
||||
# Already in cache, be silent |
||||
set(OGG_FIND_QUIETLY TRUE) |
||||
endif(OGG_INCLUDE_DIR) |
||||
|
||||
include(LibFindMacros) |
||||
include(try_add_imported_target) |
||||
|
||||
#libfind_package(OGG) |
||||
|
||||
set(_OGG_SEARCHES) |
||||
|
||||
# Search OGG_ROOT first if it is set. |
||||
if(OGG_ROOT) |
||||
set(_OGG_SEARCH_ROOT |
||||
PATHS ${OGG_ROOT} |
||||
NO_DEFAULT_PATH |
||||
NO_CMAKE_FIND_ROOT_PATH) |
||||
list(APPEND _OGG_SEARCHES _OGG_SEARCH_ROOT) |
||||
endif() |
||||
|
||||
# Search below ${DEVKITPRO}, ${DEVKITARM}, portlibs (if enabled) etc. |
||||
set(_OGG_SEARCH_NORMAL |
||||
PATHS / |
||||
NO_DEFAULT_PATH |
||||
ONLY_CMAKE_FIND_ROOT_PATH) |
||||
list(APPEND _OGG_SEARCHES _OGG_SEARCH_NORMAL) |
||||
|
||||
foreach(search ${_OGG_SEARCHES}) |
||||
find_path(OGG_INCLUDE_DIR NAMES ogg/ogg.h |
||||
${${search}} |
||||
PATH_SUFFIXES include) |
||||
find_library(OGG_LIBRARY NAMES ogg libogg.a |
||||
${${search}} |
||||
PATH_SUFFIXES lib) |
||||
endforeach() |
||||
|
||||
#find_library(LIBM_LIBRARY NAMES m libm.a |
||||
# PATHS / /arm-none-eabi |
||||
# PATH_SUFFIXES lib/armv6k/fpu) |
||||
|
||||
set(LIBM_LIBRARY m) |
||||
|
||||
set(OGG_PROCESS_INCLUDES OGG_INCLUDE_DIR) |
||||
set(OGG_PROCESS_LIBS OGG_LIBRARY LIBM_LIBRARY) |
||||
|
||||
libfind_process(OGG) |
||||
|
||||
try_add_imported_target(OGG m) |
||||
@ -1,23 +0,0 @@
|
||||
if(TREMOR_INCLUDE_DIR) |
||||
# Already in cache, be silent |
||||
set(TREMOR_FIND_QUIETLY TRUE) |
||||
endif(TREMOR_INCLUDE_DIR) |
||||
|
||||
find_path(TREMOR_INCLUDE_DIR tremor/ivorbisfile.h) |
||||
find_library(TREMOR_LIBRARY NAMES vorbisidec) |
||||
|
||||
# Handle the QUIETLY and REQUIRED arguments and set TREMOR_FOUND to TRUE if |
||||
# all listed variables are TRUE. |
||||
include(FindPackageHandleStandardArgs) |
||||
find_package_handle_standard_args(TREMOR DEFAULT_MSG |
||||
TREMOR_INCLUDE_DIR TREMOR_LIBRARY) |
||||
|
||||
mark_as_advanced(TREMOR_INCLUDE_DIR TREMOR_LIBRARY) |
||||
|
||||
if(TREMOR_FOUND) |
||||
set(TREMOR_LIBRARIES ${TREMOR_LIBRARY} ${OGG_LIBRARY}) |
||||
else(TREMOR_FOUND) |
||||
set(TREMOR_LIBRARIES) |
||||
endif(TREMOR_FOUND) |
||||
|
||||
mark_as_advanced(TREMOR_INCLUDE_DIR TREMOR_LIBRARY) |
||||
Loading…
Reference in new issue