diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-08-09 15:05:52 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-08-09 15:05:52 (GMT) |
commit | 6dce9df7f483f3229bb2f34f0386ce37a1551e07 (patch) | |
tree | 1d3acaec4612d74ee3234c808df7ae5fa3b4ef9f /contrib | |
parent | 01f8198f8b548e3f28cad1a441ceb8af6ea850a4 (diff) | |
download | uscxml-6dce9df7f483f3229bb2f34f0386ce37a1551e07.zip uscxml-6dce9df7f483f3229bb2f34f0386ce37a1551e07.tar.gz uscxml-6dce9df7f483f3229bb2f34f0386ce37a1551e07.tar.bz2 |
Extended Java bindings and OpenAL invoker
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/cmake/FINDOpenALKCAT.cmake | 31 | ||||
-rw-r--r-- | contrib/cmake/FindLIBSNDFILE.cmake | 45 |
2 files changed, 76 insertions, 0 deletions
diff --git a/contrib/cmake/FINDOpenALKCAT.cmake b/contrib/cmake/FINDOpenALKCAT.cmake new file mode 100644 index 0000000..982468d --- /dev/null +++ b/contrib/cmake/FINDOpenALKCAT.cmake @@ -0,0 +1,31 @@ +SET(WIN_DIRECTORIES "") +if(CMAKE_SIZEOF_VOID_P EQUAL 8) + list(APPEND WIN_DIRECTORIES "C:/Program Files/openal-soft-1.15.1-bin/lib/Win64") +else() + list(APPEND WIN_DIRECTORIES "C:/Program Files/openal-soft-1.15.1-bin/lib/Win32") +endif() + +find_path(OPENAL_INCLUDE_DIR al.h + HINTS + ENV OPENALDIR + PATH_SUFFIXES include/AL include/OpenAL include + PATHS + "C:/Program Files/openal-soft-1.15.1-bin" +) + +find_library(OPENAL_LIBRARY + NAMES OpenAL libOpenAL32.dll libOpenAL64.dll + HINTS + ENV OPENALDIR + PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64 + PATHS + ${WIN_DIRECTORIES} +) + + +# handle the QUIETLY and REQUIRED arguments and set OPENAL_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenAL DEFAULT_MSG OPENAL_LIBRARY OPENAL_INCLUDE_DIR) + +mark_as_advanced(OPENAL_LIBRARY OPENAL_INCLUDE_DIR) diff --git a/contrib/cmake/FindLIBSNDFILE.cmake b/contrib/cmake/FindLIBSNDFILE.cmake new file mode 100644 index 0000000..2219aaf --- /dev/null +++ b/contrib/cmake/FindLIBSNDFILE.cmake @@ -0,0 +1,45 @@ +SET(WIN_DIRECTORIES "") +if(CMAKE_SIZEOF_VOID_P EQUAL 8) + list(APPEND WIN_DIRECTORIES "C:/Program Files/Mega-Nerd/libsndfile") +else() + list(APPEND WIN_DIRECTORIES "C:/Program Files (x86)/Mega-Nerd/libsndfile") +endif() + +FIND_PATH(LIBSNDFILE_INCLUDE_DIR sndfile.h + PATH_SUFFIXES include src + PATHS + /usr/local + /usr + /sw # Fink + /opt/local # DarwinPorts + /opt/csw # Blastwave + /opt + ${WIN_DIRECTORIES} + HINTS $ENV{LIBSNDFILE_SRC} +) + +FIND_LIBRARY(LIBSNDFILE_LIBRARY_RELEASE + PATH_SUFFIXES bin lib + NAMES sndfile libsndfile libsndfile-1 + PATHS ${WIN_DIRECTORIES} +) +if (LIBSNDFILE_LIBRARY_RELEASE) + list(APPEND LIBSNDFILE_LIBRARY optimized ${LIBSNDFILE_LIBRARY_RELEASE}) +endif() + +FIND_LIBRARY(LIBSNDFILE_LIBRARY_DEBUG + PATH_SUFFIXES bin lib + NAMES sndfile_d libsndfile_d libsndfile-1_d + PATHS ${WIN_DIRECTORIES} +) +if (LIBSNDFILE_LIBRARY_DEBUG) + list(APPEND LIBSNDFILE_LIBRARY debug ${LIBSNDFILE_LIBRARY_DEBUG}) +else() +# if (UNIX) + list(APPEND LIBSNDFILE_LIBRARY debug ${LIBSNDFILE_LIBRARY_RELEASE}) +# endif() +endif() + +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBSNDFILE DEFAULT_MSG LIBSNDFILE_LIBRARY LIBSNDFILE_INCLUDE_DIR) +MARK_AS_ADVANCED(LIBSNDFILE_LIBRARY LIBSNDFILE_INCLUDE_DIR) |