2 # Find the native AntTweakBar includes and library
4 # ANTTWEAKBAR_INCLUDE_DIR, where to find AntTweakBar/include/AntTweakBar.h.
5 # ANTTWEAKBAR_LIBRARIES, the libraries needed to use AntTweakBar.
6 # ANTTWEAKBAR_FOUND, If false, do not try to use AntTweakBar.
7 # also defined, but not for general use are
8 # ANTTWEAKBAR_LIBRARY, where to find the AntTweakBar library.
10 FIND_PATH(ANTTWEAKBAR_INCLUDE_DIR AntTweakBar/include/AntTweakBar.h)
12 SET(ANTTWEAKBAR_NAME AntTweakBar)
13 IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
14 SET(ANTTWEAKBAR_NAME AntTweakBar64)
17 SET(ANTTWEAKBAR_NAMES_RELEASE ${ANTTWEAKBAR_NAMES_RELEASE} ${ANTTWEAKBAR_NAME})
18 FIND_LIBRARY(ANTTWEAKBAR_LIBRARY_RELEASE NAMES ${ANTTWEAKBAR_NAMES_RELEASE} )
20 SET(ANTTWEAKBAR_NAMES_DEBUG ${ANTTWEAKBAR_NAMES_DEBUG} ${ANTTWEAKBAR_NAME})
21 FIND_LIBRARY(ANTTWEAKBAR_LIBRARY_DEBUG NAMES ${ANTTWEAKBAR_NAMES_DEBUG} )
23 IF(ANTTWEAKBAR_LIBRARY_DEBUG)
24 SET(ANTTWEAKBAR_LIBRARIES_FOUND TRUE)
25 MARK_AS_ADVANCED(ANTTWEAKBAR_LIBRARY_DEBUG)
26 ENDIF(ANTTWEAKBAR_LIBRARY_DEBUG)
28 IF(ANTTWEAKBAR_LIBRARY_RELEASE)
29 SET(ANTTWEAKBAR_LIBRARIES_FOUND TRUE)
30 MARK_AS_ADVANCED(ANTTWEAKBAR_LIBRARY_RELEASE)
31 ENDIF(ANTTWEAKBAR_LIBRARY_RELEASE)
33 # handle the QUIETLY and REQUIRED arguments and set ANTTWEAKBAR_FOUND to TRUE if
34 # all listed variables are TRUE
35 INCLUDE(FindPackageHandleStandardArgs)
36 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ANTTWEAKBAR DEFAULT_MSG
37 ANTTWEAKBAR_LIBRARIES_FOUND ANTTWEAKBAR_INCLUDE_DIR)
39 #IF(ANTTWEAKBAR_FOUND)
40 # SET(ANTTWEAKBAR_LIBRARIES ${ANTTWEAKBAR_LIBRARY})
41 #ENDIF(ANTTWEAKBAR_FOUND)
43 # Deprecated declarations.
44 #SET (NATIVE_ANTTWEAKBAR_INCLUDE_PATH ${ANTTWEAKBAR_INCLUDE_DIR} )
45 #IF(ANTTWEAKBAR_LIBRARY)
46 # GET_FILENAME_COMPONENT (NATIVE_ANTTWEAKBAR_LIB_PATH ${ANTTWEAKBAR_LIBRARY} PATH)
47 #ENDIF(ANTTWEAKBAR_LIBRARY)
49 MARK_AS_ADVANCED(ANTTWEAKBAR_LIBRARIES_FOUND ANTTWEAKBAR_INCLUDE_DIR )