mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Initial commit
added libraries: opus flac libsndfile updated: libvorbis libogg openal - Everything works as expected for now. Bare in mind libsndfile needed the check for whether or not it could find the xiph libraries removed in order for this to work.
This commit is contained in:
parent
05a083ca6f
commit
a745fc3757
1954 changed files with 431332 additions and 21037 deletions
56
Engine/lib/libsndfile/cmake/sqlite/FindSQLite3.cmake
Normal file
56
Engine/lib/libsndfile/cmake/sqlite/FindSQLite3.cmake
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# - Find SQLite3
|
||||
# Find the native SQLite3 includes and libraries
|
||||
#
|
||||
# SQLite3_INCLUDE_DIRS - where to find sqlite3.h, etc.
|
||||
# SQLite3_LIBRARIES - List of libraries when using SQLite3.
|
||||
# SQLite3_FOUND - True if SQLite3 found.
|
||||
|
||||
if (SQLite3_INCLUDE_DIR)
|
||||
# Already in cache, be silent
|
||||
set (SQLite3_FIND_QUIETLY TRUE)
|
||||
endif ()
|
||||
|
||||
find_package (PkgConfig QUIET)
|
||||
pkg_check_modules (PC_SQLite3 QUIET sqlite3)
|
||||
|
||||
set (SQLite3_VERSION ${PC_SQLite3_VERSION})
|
||||
|
||||
find_path (SQLite3_INCLUDE_DIR sqlite3.h
|
||||
HINTS
|
||||
${PC_SQLite3_INCLUDEDIR}
|
||||
${PC_SQLite3_INCLUDE_DIRS}
|
||||
${SQLite3_ROOT}
|
||||
)
|
||||
|
||||
find_library (SQLite3_LIBRARY
|
||||
NAMES
|
||||
sqlite3
|
||||
HINTS
|
||||
${PC_SQLite3_LIBDIR}
|
||||
${PC_SQLite3_LIBRARY_DIRS}
|
||||
${SQLite3_ROOT}
|
||||
)
|
||||
|
||||
include (FindPackageHandleStandardArgs)
|
||||
|
||||
find_package_handle_standard_args (SQLite3
|
||||
REQUIRED_VARS
|
||||
SQLite3_LIBRARY
|
||||
SQLite3_INCLUDE_DIR
|
||||
VERSION_VAR
|
||||
SQLite3_VERSION
|
||||
)
|
||||
|
||||
if (SQLite3_FOUND)
|
||||
set (SQLite3_INCLUDE_DIRS ${SQLite3_INCLUDE_DIR})
|
||||
set (SQLite3_LIBRARIES ${SQLite3_LIBRARY})
|
||||
if (NOT TARGET SQLite::SQLite3)
|
||||
add_library (SQLite::SQLite3 UNKNOWN IMPORTED)
|
||||
set_target_properties (SQLite::SQLite3 PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${SQLite3_INCLUDE_DIRS}"
|
||||
IMPORTED_LOCATION "${SQLite3_LIBRARIES}"
|
||||
)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
mark_as_advanced (SQLite3_INCLUDE_DIR SQLite3_LIBRARY)
|
||||
Loading…
Add table
Add a link
Reference in a new issue