Skip to content

Commit 732b9b6

Browse files
committed
Modify the project organization form
1 parent 3c91f22 commit 732b9b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+256
-360
lines changed

.gitattributes

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build on Windows
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
env:
11+
BUILD_TYPE: Release
12+
13+
jobs:
14+
build-windows:
15+
runs-on: windows-2022
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
- name: Set up MSBuild and CMake
22+
uses: microsoft/[email protected]
23+
24+
- name: Install MSYS2 (Git Bash)
25+
uses: msys2/setup-msys2@v2
26+
with:
27+
update: true
28+
29+
- name: Configure and build C++ wrapper (DLL)
30+
shell: bash
31+
run: |
32+
./build_and_install_flexiv_rdk_dll.sh
33+
34+
- name: Build C# example
35+
run: |
36+
cd csharp
37+
dotnet build csharp.csproj -c Release
38+
39+
- name: Run C# example
40+
run: |
41+
cd csharp
42+
dotnet run --project csharp.csproj -c Release

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,11 @@ MigrationBackup/
360360
.ionide/
361361

362362
# Fody - auto-generated XML schema
363-
FodyWeavers.xsd
363+
FodyWeavers.xsd
364+
365+
build*/
366+
third_party/flexiv_rdk
367+
install/cpp_wrapper
368+
install/rdk_install
369+
bin*/
370+
obj*/

CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
cmake_minimum_required(VERSION 3.16)
2+
project(FlexivRdkCSharp LANGUAGES C CXX)
3+
4+
set(CMAKE_CXX_STANDARD 17)
5+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6+
7+
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/install/rdk_install")
8+
find_package(flexiv_rdk REQUIRED)
9+
10+
include(GNUInstallDirs)
11+
12+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE PATH "Archive output dir.")
13+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE PATH "Library output dir.")
14+
set(CMAKE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "PDB (MSVC debug symbol)output dir.")
15+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "Executable/dll output dir.")
16+
17+
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
18+
set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/install" CACHE PATH "Default install path" FORCE)
19+
endif()
20+
add_subdirectory(cpp_wrapper)

FlexivRdk.sln

Lines changed: 0 additions & 49 deletions
This file was deleted.

FlexivRdkCSharp/FlexivRdkCSharp.csproj

Lines changed: 0 additions & 14 deletions
This file was deleted.

FlexivRdkDll/FlexivRdkDll.vcxproj

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)