Skip to content

Commit

Permalink
Bump cmake-js from 6.3.2 to 7.0.0 (#99)
Browse files Browse the repository at this point in the history
* Bump cmake-js from 6.3.2 to 7.0.0

Bumps [cmake-js](https://github.com/cmake-js/cmake-js) from 6.3.2 to 7.0.0.
- [Release notes](https://github.com/cmake-js/cmake-js/releases)
- [Changelog](https://github.com/cmake-js/cmake-js/blob/master/changelog.md)
- [Commits](cmake-js/cmake-js@v6.3.2...v7.0.0)

---
updated-dependencies:
- dependency-name: cmake-js
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* 🐛 adapt to breaking changes

* 🔧 remove Node 12 and add Node 18 to CI

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lukas Burgholzer <lukas.burgholzer@jku.at>
  • Loading branch information
dependabot[bot] and burgholzer authored Oct 17, 2022
1 parent bd664d3 commit bea1eed
Show file tree
Hide file tree
Showing 4 changed files with 561 additions and 1,220 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 12.x, 14.x, 16.x ]
node-version: [ 14.x, 16.x, 18.x ]
steps:
- uses: actions/checkout@v3
with:
Expand Down
19 changes: 9 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
cmake_minimum_required(VERSION 3.15...3.22)
cmake_minimum_required(VERSION 3.15...3.24)
cmake_policy(SET CMP0091 NEW)
cmake_policy(SET CMP0042 NEW)

# detailed description
project(DDVis
VERSION 1.5.0
VERSION 1.5.1
DESCRIPTION "MQT DDVis - A Tool for Visualizing Decision Diagrams for Quantum Computing"
LANGUAGES CXX)

Expand Down Expand Up @@ -60,13 +62,10 @@ endif()
# set compiler flags (this assumes gcc or clang)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra $<$<CONFIG:DEBUG>:-Og> -mtune=native -march=native)

# Include N-API wrappers
execute_process(COMMAND node -p "require('node-addon-api').include"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE NODE_ADDON_API_DIR
)
string(REPLACE "\n" "" NODE_ADDON_API_DIR ${NODE_ADDON_API_DIR})
string(REPLACE "\"" "" NODE_ADDON_API_DIR ${NODE_ADDON_API_DIR})
target_include_directories(${PROJECT_NAME} PRIVATE ${NODE_ADDON_API_DIR} ${NODE_ADDON_API_DIR}/src)
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_JS_INC})
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})

if(MSVC AND CMAKE_JS_NODELIB_DEF AND CMAKE_JS_NODELIB_TARGET)
# Generate node.lib
execute_process(COMMAND ${CMAKE_AR} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} ${CMAKE_STATIC_LINKER_FLAGS})
endif()
Loading

0 comments on commit bea1eed

Please sign in to comment.