|
@@ -1,46 +0,0 @@
|
1
|
|
-# -*- cmake -*-
|
2
|
|
-# - Find JSONCpp
|
3
|
|
-# Find the JSONCpp includes and library
|
4
|
|
-# This module defines
|
5
|
|
-# JSONCPP_INCLUDE_DIRS, where to find json.h, etc.
|
6
|
|
-# JSONCPP_LIBRARIES, the libraries needed to use jsoncpp.
|
7
|
|
-# JSONCPP_FOUND, If false, do not try to use jsoncpp.
|
8
|
|
-# also defined, but not for general use are
|
9
|
|
-# JSONCPP_LIBRARIES, where to find the jsoncpp library.
|
10
|
|
-
|
11
|
|
-FIND_PATH(JSONCPP_INCLUDE_DIRS json/json.h
|
12
|
|
- /usr/include
|
13
|
|
- /usr/local/include
|
14
|
|
- ${CMAKE_SOURCE_DIR}/win32-deps/include
|
15
|
|
- PATH_SUFFIXES jsoncpp/json jsoncpp
|
16
|
|
- )
|
17
|
|
-
|
18
|
|
-
|
19
|
|
-FIND_LIBRARY(JSONCPP_LIBRARIES NAMES jsoncpp HINTS /usr/lib /usr/local/lib ${CMAKE_SOURCE_DIR}/win32-deps/lib)
|
20
|
|
-
|
21
|
|
-IF (JSONCPP_LIBRARIES AND JSONCPP_INCLUDE_DIRS)
|
22
|
|
- SET(JSONCPP_LIBRARIES ${JSONCPP_LIBRARIES})
|
23
|
|
- SET(JSONCPP_FOUND "YES")
|
24
|
|
-ELSE (JSONCPP_LIBRARIES AND JSONCPP_INCLUDE_DIRS)
|
25
|
|
- SET(JSONCPP_FOUND "NO")
|
26
|
|
-ENDIF (JSONCPP_LIBRARIES AND JSONCPP_INCLUDE_DIRS)
|
27
|
|
-
|
28
|
|
-
|
29
|
|
-IF (JSONCPP_FOUND)
|
30
|
|
- IF (NOT JSONCPP_FIND_QUIETLY)
|
31
|
|
- MESSAGE(STATUS "Found JSONCpp: ${JSONCPP_LIBRARIES}")
|
32
|
|
- ENDIF (NOT JSONCPP_FIND_QUIETLY)
|
33
|
|
-ELSE (JSONCPP_FOUND)
|
34
|
|
- IF (JSONCPP_FIND_REQUIRED)
|
35
|
|
- MESSAGE(FATAL_ERROR "Could not find JSONCPP library include: ${JSONCPP_INCLUDE_DIRS}, lib: ${JSONCPP_LIBRARIES}")
|
36
|
|
- ENDIF (JSONCPP_FIND_REQUIRED)
|
37
|
|
-ENDIF (JSONCPP_FOUND)
|
38
|
|
-
|
39
|
|
-# Deprecated declarations.
|
40
|
|
-SET (NATIVE_JSONCPP_INCLUDE_PATH ${JSONCPP_INCLUDE_DIRS} )
|
41
|
|
-GET_FILENAME_COMPONENT (NATIVE_JSONCPP_LIB_PATH ${JSONCPP_LIBRARIES} PATH)
|
42
|
|
-
|
43
|
|
-MARK_AS_ADVANCED(
|
44
|
|
- JSONCPP_LIBRARIES
|
45
|
|
- JSONCPP_INCLUDE_DIRS
|
46
|
|
-)
|