diff options
author | Slávek Banko <[email protected]> | 2013-05-12 12:26:39 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-05-12 12:29:14 +0200 |
commit | 5fc2ad73cc00132503b3cf958327be19ca3a695a (patch) | |
tree | 64998c1af72c19a2ffee419cccdd13e43a8af382 /ConfigureChecks.cmake | |
parent | 8bad2664cb6f8ab191d44647937acfd45b977920 (diff) | |
download | amarok-5fc2ad73cc00132503b3cf958327be19ca3a695a.tar.gz amarok-5fc2ad73cc00132503b3cf958327be19ca3a695a.zip |
Add cmake support for mp4v2
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 377fa4d3..d6891aa7 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -222,3 +222,23 @@ if( WITH_KONQSIDEBAR ) tde_message_fatal( "konqsidebarplugin.h are requested, but not found on your system" ) endif( ) endif( ) + +##### check for mp4v2 ########################### + +if( WITH_MP4V2 ) + check_include_file( "mp4v2/mp4v2.h" MP4V2_H_FOUND ) + if( MP4V2_H_FOUND ) + set( HAVE_MP4V2_H 1) + else( MP4V2_H_FOUND ) + check_include_file( "mp4.h" MP4_H_FOUND ) + if( MP4_H_FOUND ) + set( HAVE_MP4_H 1) + endif( MP4_H_FOUND ) + endif( MP4V2_H_FOUND ) + + if( HAVE_MP4V2_H OR HAVE_MP4_H ) + set( HAVE_MP4V2 1 ) + else( ) + tde_message_fatal( "MP4V2 support was requested, but not found on your system" ) + endif( ) +endif( ) |