-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: New CI tooling, local dev setup and stp to glb parser (#4)
- Loading branch information
Showing
70 changed files
with
1,949 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
build/ | ||
.idea/ | ||
cmake-build*/ | ||
.env | ||
.env | ||
.env.json | ||
temp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"version": 6, | ||
"include": [ | ||
".env.json" | ||
], | ||
"configurePresets": [ | ||
{ | ||
"name": "win-local", | ||
"inherits": ["env-vars"], | ||
"generator": "Ninja", | ||
"hidden": false, | ||
"environment": { | ||
"LIBRARY_PREFIX": "$env{PREFIX}/Library" | ||
}, | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "RelwithDebInfo", | ||
"CMAKE_PREFIX_PATH": "$env{LIBRARY_PREFIX};$env{LIBRARY_PREFIX}/include;$env{LIBRARY_PREFIX}/lib;$env{LIBRARY_PREFIX}/bin", | ||
"CMAKE_INSTALL_PREFIX": "$env{LIBRARY_PREFIX}", | ||
"CGAL_DIR": "$env{LIBRARY_PREFIX}/lib/cmake/CGAL", | ||
"OpenCASCADE_DIR": "$env{LIBRARY_PREFIX}/lib/cmake/opencascade", | ||
"OpenCASCADE_INCLUDE_DIR": "$env{LIBRARY_PREFIX}/include/opencascade", | ||
"Python_EXECUTABLE": "$env{PREFIX}/python.exe", | ||
"Python_LIBRARIES": "$env{PREFIX}/libs/python311.lib", | ||
"Python_INCLUDE_DIRS": "$env{LIBRARY_PREFIX}/include", | ||
"BUILD_TESTING": "ON", | ||
"CONDA_LOCAL_DEV": "ON" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Find CGAL | ||
find_package(CGAL REQUIRED) | ||
|
||
if (CGAL_FOUND) | ||
message(STATUS "CGAL version found: " ${CGAL_VERSION}) | ||
message(STATUS "CGAL include directory: " ${CGAL_INCLUDE_DIRS}) | ||
message(STATUS "CGAL binary directory: " ${CGAL_DIR}) | ||
message(STATUS "CGAL library directory: " ${CGAL_LIBRARY_DIRS}) | ||
|
||
include_directories(${CGAL_INCLUDE_DIRS}) | ||
link_directories(${CGAL_LIBRARY_DIRS}) | ||
endif (CGAL_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
find_library(GMSH_LIB gmsh) | ||
if(NOT GMSH_LIB) | ||
message(FATAL_ERROR "Could not find libgmsh") | ||
endif() | ||
|
||
find_path(GMSH_INC gmsh.h) | ||
if(NOT GMSH_INC) | ||
message(FATAL_ERROR "Could not find gmsh.h") | ||
endif() | ||
|
||
include_directories(${GMSH_INC}) | ||
|
||
list(APPEND | ||
ADA_CPP_LINK_LIBS | ||
gmsh) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# link the library files located in %LIBRARY_PREFIX%/lib/ifcparse/IfcParse.lib (on windows as an example) | ||
# to the executable | ||
|
||
list(APPEND | ||
ADA_CPP_LINK_LIBS | ||
IfcParse | ||
IfcGeom | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Find OpenCASCADE | ||
find_package(OpenCASCADE REQUIRED) | ||
if (OpenCASCADE_FOUND) | ||
message(STATUS "OpenCASCADE version found: " ${OpenCASCADE_MAJOR_VERSION} ".." ${OpenCASCADE_MINOR_VERSION} ".." ${OpenCASCADE_MAINTENANCE_VERSION}) | ||
message(STATUS "OpenCASCADE include directory: " ${OpenCASCADE_INCLUDE_DIR}) | ||
message(STATUS "OpenCASCADE binary directory: " ${OpenCASCADE_BINARY_DIR}) | ||
message(STATUS "OpenCASCADE library directory: " ${OpenCASCADE_LIBRARY_DIR}) | ||
|
||
include_directories(${OpenCASCADE_INCLUDE_DIR}) | ||
link_directories(${OpenCASCADE_LIBRARY_DIR}) | ||
|
||
list(APPEND | ||
ADA_CPP_LINK_LIBS | ||
TKernel | ||
TKMath | ||
TKBRep | ||
TKPrim | ||
TKTopAlgo | ||
TKSTEP | ||
TKXDESTEP | ||
TKLCAF | ||
TKXCAF | ||
TKRWMesh) | ||
endif (OpenCASCADE_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Detect the installed nanobind package and import it into CMake | ||
execute_process( | ||
COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir | ||
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE NB_DIR) | ||
|
||
message(STATUS "NanoBind Cmake directory: " ${NB_DIR}) | ||
list(APPEND CMAKE_PREFIX_PATH "${NB_DIR}") | ||
|
||
# Import nanobind through CMake's find_package mechanism | ||
find_package(nanobind CONFIG REQUIRED) | ||
|
||
# Print the list of cpp files separated by spaces without altering it | ||
string(REPLACE ";" " " ADA_CPP_SOURCES_STR "${ADA_CPP_SOURCES}") | ||
message(STATUS "AdaCpp sources: " ${ADA_CPP_SOURCES_STR}) | ||
|
||
# Create a Python module | ||
nanobind_add_module(_ada_cpp_ext_impl STABLE_ABI ${ADA_CPP_SOURCES}) |
Oops, something went wrong.