diff options
author | Slávek Banko <[email protected]> | 2017-03-26 15:58:46 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2017-03-26 15:59:04 +0200 |
commit | efcdd889254fc98314dd48854d50e90aa21e53c0 (patch) | |
tree | 5dc7034c23a5a18ca31d90225137f5eeaec809c4 /juk/ConfigureChecks.cmake | |
parent | 25709e498d5832125f5f584bd10e3c66d05ec5ee (diff) | |
download | tdemultimedia-efcdd889254fc98314dd48854d50e90aa21e53c0.tar.gz tdemultimedia-efcdd889254fc98314dd48854d50e90aa21e53c0.zip |
Initial cmake conversion
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 8b12682035e2ae92a29a9ce12abc5fbcf38b1192)
Diffstat (limited to 'juk/ConfigureChecks.cmake')
-rw-r--r-- | juk/ConfigureChecks.cmake | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/juk/ConfigureChecks.cmake b/juk/ConfigureChecks.cmake new file mode 100644 index 00000000..191f0554 --- /dev/null +++ b/juk/ConfigureChecks.cmake @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( WITH_GSTREAMER ) + pkg_search_module( GST gstreamer-1.0>=1.0.0 gstreamer-0.10>=0.10.0 gstreamer-0.8>=0.8.0 ) + if( NOT GST_FOUND ) + tde_message_fatal( "gstreamer is requested, but not found on your system" ) + endif( ) + set( HAVE_GSTREAMER 1 CACHE INTERNAL "" FORCE ) +endif( WITH_GSTREAMER ) + + +if( WITH_MUSICBRAINZ ) + check_include_file( tunepimp-0.5/tp_c.h HAVE_TUNEPIMP_H ) + if( NOT HAVE_TUNEPIMP_H ) + tde_message_fatal( "tunepimp is requested, but not found on your system" ) + endif( ) + check_library_exists( tunepimp tp_SetTRMCollisionThreshold "" HAVE_TUNEPIMP_5 ) + if( HAVE_TUNEPIMP_5 ) + tde_message_fatal( "tunepimp is requested, but found tunepimp5 that is not supported" ) + endif( ) + check_library_exists( tunepimp tp_SetFileNameEncoding "" HAVE_TUNEPIMP_4 ) + if( HAVE_TUNEPIMP_4 ) + set( HAVE_MUSICBRANINZ 4 CACHE INTERNAL "" FORCE ) + else( ) + set( HAVE_MUSICBRANINZ 1 CACHE INTERNAL "" FORCE ) + endif( ) + set( MUSICBRAINZ_LIBRARIES tunepimp ) +else( WITH_MUSICBRAINZ ) + set( HAVE_MUSICBRANINZ 0 CACHE INTERNAL "" FORCE ) +endif( WITH_MUSICBRAINZ ) |