Skip to content

Commit

Permalink
cmake: try again
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Nov 20, 2023
1 parent 12b2807 commit a2242b4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 19 deletions.
37 changes: 36 additions & 1 deletion .github/workflows/windows-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,42 @@ jobs:
if errorlevel 1 exit 1
:: Build and Install
cmake --build . --config Release --target toto
cmake --build . --config Release --target install
if errorlevel 1 exit 1
:: Testing
ctest --output-on-failure -C Release -V
if errorlevel 1 exit 1
:: Test Python import
cd ..
python -c "import eigenpy"
if errorlevel 1 exit 1
:: Test packaging
cmake -B test-packaging -S unittest/packaging/cmake ^
-G "NMake Makefiles" ^
-DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe
if errorlevel 1 exit 1
:: Configure hpp-fcl
conda install -c conda-forge octomap assimp qhull
git clone --recursive https://github.com/humanoid-path-planner/hpp-fcl.git
pushd hpp-fcl
mkdir build
pushd build
cmake ^
-G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
-DCMAKE_BUILD_TYPE=Release ^
-DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^
..
cd ..
if errorlevel 1 exit 1
:: Uninstall
cmake --build . --config Release --target uninstall
if errorlevel 1 exit 1
check:
Expand Down
2 changes: 1 addition & 1 deletion cmake
Submodule cmake updated 1 files
+13 −8 stubs.cmake
17 changes: 0 additions & 17 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,3 @@ foreach(python ${PYTHON_FILES})
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/eigenpy/${python}"
DESTINATION ${${PYWRAP}_INSTALL_DIR})
endforeach(python)

set(_optional_args ${PYWRAP} ${PROJECT_NAME})
foreach(py_target IN LISTS _optional_args)
if(TARGET ${py_target})
set(_is_lib
"$<STREQUAL:$<TARGET_PROPERTY:${py_target},TYPE>,SHARED_LIBRARY>")
set(_target_dir "$<TARGET_FILE_DIR:${py_target}>")
set(_path "$<${_is_lib}:${_target_dir}\\\;>${_path}")
endif()
endforeach()

string(REPLACE ";" "\;" PATH_STR "$ENV{PATH}")
set(ENV_PATH "LPATH=${_path}${PATH_STR}")
add_custom_target(
toto ALL
COMMAND ${CMAKE_COMMAND} -E env ${ENV_PATH} ECHO %LPATH%
VERBATIM)

0 comments on commit a2242b4

Please sign in to comment.