FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/cmake/libv8.cmake at master · naragon/node · GitHub
naragon
node
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
cmake
/
libv8.cmake
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (23 loc) · 792 Bytes
Breadcrumbs
node
/
cmake
/
libv8.cmake
Copy path
File metadata and controls
25 lines (23 loc) · 792 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
set
(V8_INCLUDE_NAMES v8.h v8-debug.h v8-profiler.h v8stdint.h)
set
(V8_LIBRARY_NAMES v8)
if
(SHARED_V8)
find_path
(
V8_INCLUDE_DIR
NAMES
${V8_INCLUDE_NAMES}
)
find_library
(
V8_LIBRARY_PATH
NAMES
${V8_LIBRARY_NAMES}
NO_CMAKE_PATH
)
else
()
set
(V8_INCLUDE_DIR
"
${
PROJECT_BINARY_DIR
}
/deps/v8/include"
)
if
(
${
CMAKE_BUILD_TYPE
}
MATCHES
Debug)
set
(v8_fn
"libv8_g.a"
)
else
()
set
(v8_fn
"libv8.a"
)
endif
()
set
(V8_LIBRARY_PATH
"
${
PROJECT_BINARY_DIR
}
/deps/v8/
${v8_fn}
"
)
install
(
DIRECTORY
#
# Do NOT remove the trailing slash
#
# it is required so that v8 headers are
#
# copied directly into include/node
#
# rather than in a subdirectory
#
# See CMake's install(DIRECTORY) manual for details
${V8_INCLUDE_DIR}
/
DESTINATION
include/node
)
endif
()
Back
|
FazBrowse Home
|
New Git URL