Skip to content

Commit d976e7b

Browse files
compile SceneChecking app required for runSofa as it not part of conda-core CMake preset
1 parent ada7512 commit d976e7b

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

conda/recipes/nightly/sofa-app/build.bat

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
setlocal EnableDelayedExpansion
22
@echo on
33

4+
:: SceneChecking application
5+
rmdir /S /Q build-scene-checking
6+
7+
mkdir build-scene-checking
8+
cd build-scene-checking
9+
10+
:: Configure
11+
cmake %CMAKE_ARGS% ^
12+
-B . ^
13+
-S %SRC_DIR%\applications\projects\SceneChecking ^
14+
-G Ninja ^
15+
-DCMAKE_BUILD_TYPE:STRING=Release
16+
if errorlevel 1 exit 1
17+
18+
:: Build.
19+
cmake --build . --parallel "%CPU_COUNT%"
20+
if errorlevel 1 exit 1
21+
22+
:: Install.
23+
cmake --build . --parallel "%CPU_COUNT%" --target install
24+
if errorlevel 1 exit 1
25+
426
:: runSofa application
527
rmdir /S /Q build-sofa-app
628

conda/recipes/nightly/sofa-app/build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,28 @@ if [[ $target_platform == osx* ]] ; then
88
CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
99
fi
1010

11+
# SceneChecking application
12+
# ----------
13+
rm -rf build-scene-checking
14+
15+
mkdir build-scene-checking
16+
cd build-scene-checking
17+
18+
# We have to manually set the Rpath for other SOFA libs to the lib/ directory using
19+
# the CMAKE_INSTALL_RPATH cmake variable, as SOFA CMakeLists are not designed
20+
# initially for a per-component compilation & installation
21+
cmake ${CMAKE_ARGS} \
22+
-B . \
23+
-S ../applications/projects/SceneChecking/ \
24+
-DCMAKE_BUILD_TYPE:STRING=Release \
25+
-DCMAKE_INSTALL_RPATH:PATH=${PREFIX}/lib
26+
27+
# build
28+
cmake --build . --parallel ${CPU_COUNT}
29+
30+
# install
31+
cmake --build . --parallel ${CPU_COUNT} --target install
32+
1133
# runSofa application
1234
# ----------
1335
rm -rf build-sofa-app

0 commit comments

Comments
 (0)