You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify build.ps1 system and clean up CMake configuration (#81)
* Fix Windows/MSVC build issues with Irrlicht includes and ctest executable paths.
- Force MSVC to use /I instead of /external:I for system includes, fixing nested Irrlicht header resolution failures (e.g., rect.h, line3d.h)
- Add explicit Irrlicht_ROOT and Irrlicht_INCLUDE_DIR cache variables
- Fix CTest executable paths to use $<TARGET_FILE:...> generator expression instead of hardcoded paths that fail with VS multi-config builds
- Inject HYDROCHRONO_DATA_DIR environment for regression tests
- Add Irrlicht.dll copying to build output directory
* remove obsolete files and simplify CMake configuration
- Delete quick-build.ps1 (superseded by build.ps1)
- Remove orphaned test files from tests/ root
- Remove CDash dashboard targets (Nightly, Continuous, etc.)
- Simplify project metadata to just use CMake project()
* remove unused CMake options
* Simplify build system - auto-detect deps from Chrono
- Config reduced from 12 fields to 2 (ChronoDir + optional PythonRoot)
- Auto-detect Irrlicht/VSG/HDF5 from Chrono's cmake config
- Enable visualization by default if Chrono has it (use -NoIrrlicht to disable)
- Remove redundant path handling - Eigen, HDF5, runtime library all inherited
# HydroChronoGUI includes Irrlicht headers directly (e.g., <IEventReceiver.h>).
439
+
# Chrono may expose Irrlicht include dirs as SYSTEM/external includes on MSVC; add a normal /I include path too.
440
+
if(HYDROCHRONO_ENABLE_IRRLICHT)
441
+
# Derive include dir from Irrlicht_ROOT if caller didn't provide it explicitly.
442
+
if((NOT Irrlicht_INCLUDE_DIR OR Irrlicht_INCLUDE_DIR STREQUAL"") AND (DEFINED Irrlicht_ROOT ANDNOT Irrlicht_ROOT STREQUAL""))
443
+
set(Irrlicht_INCLUDE_DIR "${Irrlicht_ROOT}/include"CACHEPATH"Irrlicht include directory (auto-derived from Irrlicht_ROOT)"FORCE)
444
+
endif()
445
+
446
+
if(NOT Irrlicht_INCLUDE_DIR OR Irrlicht_INCLUDE_DIR STREQUAL""ORNOTEXISTS"${Irrlicht_INCLUDE_DIR}/irrlicht.h")
447
+
message(FATAL_ERROR"HYDROCHRONO_ENABLE_IRRLICHT is ON but Irrlicht_INCLUDE_DIR is not a valid Irrlicht include directory. Provide -DIrrlicht_INCLUDE_DIR=<IrrlichtRoot>/include (or -DIrrlicht_ROOT=<IrrlichtRoot>).")
0 commit comments