Files
medicallib/CMakeLists.txt
T
google-labs-jules[bot] 5a79cc45cd feat: Refactor Patient and implement mean-reverting simulation
- Broke out the Patient struct and its related functions (initializePatient, updatePatient) into their own files (Patient.h, Patient.cpp) for better organization.

- Implemented the initial UpdateState logic in the updatePatient function using a mean-reverting model. This ensures that vital signs fluctuate realistically around a healthy baseline.

- Updated CMakeLists.txt to include the new Patient.cpp file in the build.
2025-08-18 09:33:33 +00:00

25 lines
725 B
CMake

# CMake minimum version
cmake_minimum_required(VERSION 3.10)
# Project name
project(MedicalLib)
# Add the library
add_library(MedicalLib SHARED src/MedicalLib.cpp src/Patient.cpp)
# Define MEDICAL_LIB_EXPORT, so that __declspec(dllexport) is used
target_compile_definitions(MedicalLib PRIVATE MEDICAL_LIB_EXPORT)
# Public headers
target_include_directories(MedicalLib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
# Set the output directory for the library
set_target_properties(MedicalLib PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
)
# Add the examples subdirectory
add_subdirectory(examples)