Build Node bindings on Windows
This commit is contained in:
parent
232b814d7d
commit
76b671dfe2
@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.2)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||
|
||||
include_directories(SYSTEM "D:\\a\\osrm-backend\\osrm-backend\\node_modules\\nan\\")
|
||||
|
||||
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR AND NOT MSVC_IDE)
|
||||
message(FATAL_ERROR "In-source builds are not allowed.
|
||||
Please create a directory and run cmake from there, passing the path to this source directory as the last argument.
|
||||
|
||||
@ -11,8 +11,6 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/node_modules/node-cmake")
|
||||
include(NodeJS)
|
||||
nodejs_init()
|
||||
|
||||
include_directories(SYSTEM "D:\\a\\osrm-backend\\osrm-backend\\node_modules\\nan\\")
|
||||
|
||||
message(STATUS "Configuring node_osrm bindings for NodeJs ${NODEJS_VERSION}")
|
||||
|
||||
add_nodejs_module(node_osrm node_osrm.cpp)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user