mirror of https://github.com/nodejs/node.git
16 lines
470 B
CMake
16 lines
470 B
CMake
|
set(V8_INCLUDE_NAMES v8.h v8-debug.h v8-profiler.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}")
|
||
|
endif()
|