|
|
|
@ -23,6 +23,8 @@ set( VERSION 0.6.0 )
|
|
|
|
|
|
|
|
|
|
include( FindPkgConfig )
|
|
|
|
|
include( CheckIncludeFile )
|
|
|
|
|
include( CheckFunctionExists )
|
|
|
|
|
include( CheckLibraryExists )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### include our cmake modules #################
|
|
|
|
@ -83,6 +85,15 @@ if( NOT LIBGLADE_FOUND )
|
|
|
|
|
tde_message_fatal( "libglade-2.0 are required, but not found on your system" )
|
|
|
|
|
endif( NOT LIBGLADE_FOUND )
|
|
|
|
|
|
|
|
|
|
set( DL_LIBRARIES dl )
|
|
|
|
|
check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL )
|
|
|
|
|
if( NOT HAVE_LIBDL )
|
|
|
|
|
unset( DL_LIBRARIES )
|
|
|
|
|
check_function_exists( dlopen HAVE_DLOPEN )
|
|
|
|
|
if( HAVE_DLOPEN )
|
|
|
|
|
set( HAVE_LIBDL 1 )
|
|
|
|
|
endif( HAVE_DLOPEN )
|
|
|
|
|
endif( NOT HAVE_LIBDL )
|
|
|
|
|
|
|
|
|
|
set( EXTRA_LIBRARIES "-lm -lpthread" )
|
|
|
|
|
if( UNIX )
|
|
|
|
|