source: trunk/FACT++/cmake/FindV8.cmake@ 19952

Last change on this file since 19952 was 18994, checked in by tbretz, 7 years ago
Cmake stuff.
File size: 546 bytes
Line 
1# Try to find the package via pkg-config
2PKG_CHECK_MODULES(V8 v8 QUIET)
3
4# Try to locate the package in the default path
5# and in the path provided by pkg-config
6FIND_PATH(V8_INCLUDE_DIR NAMES v8.h PATHS ${V8_INCLUDE_DIRS})
7FIND_LIBRARY(V8_LIBRARY NAMES v8 PATHS ${V8_LIBRARY_DIRS})
8
9# Check if V8_LIBARARY and V8_INCLUDE_DIR is set
10# Print a message otherwise
11FIND_PACKAGE_HANDLE_STANDARD_ARGS(V8 DEFAULT_MSG V8_LIBRARY V8_INCLUDE_DIR)
12
13# Mark those variables to be displayed as 'advanced' in the GUI
14MARK_AS_ADVANCED(V8_LIBRARY V8_INCLUDE_DIR)
Note: See TracBrowser for help on using the repository browser.