blob: 2040ccf36389438a0703c6cba7c648c4a9b19206 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
if (NOT APPLE)
FIND_PATH(JSC_INCLUDE_DIR JavaScriptCore/JavaScriptCore.h
PATH_SUFFIXES webkitgtk-1.0 webkitgtk-3.0
PATHS
/usr/local
/usr
/sw # Fink
/opt/local # DarwinPorts
/opt/csw # Blastwave
/opt
)
endif()
FIND_LIBRARY(JSC_LIBRARY
NAMES JavaScriptCore javascriptcoregtk-1.0 javascriptcoregtk-3.0
)
INCLUDE(FindPackageHandleStandardArgs)
if (NOT APPLE)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(JSC DEFAULT_MSG JSC_INCLUDE_DIR JSC_LIBRARY)
MARK_AS_ADVANCED(JSC_LIBRARY JSC_INCLUDE_DIR)
else()
FIND_PACKAGE_HANDLE_STANDARD_ARGS(JSC DEFAULT_MSG JSC_LIBRARY)
MARK_AS_ADVANCED(JSC_LIBRARY)
endif()
|