Commit 36cad1e4 authored by pkda001's avatar pkda001

local updates commit

parent cc64ce46
builds/
cmdsim_old.cmake
cmake/
# CLASim
The closed-loop assistant (CLA) simulation framework (CLASim) is a simulation framework in C++ that allows simulation of the interaction between closed-loop medical systems consisting of patient monitors, closed-loop physiology management algorithms, and infusion pumps, and patient physiology. It relies on the <a href="https://physiology.kitware.com/" target="__blank">Pulse Physiology Engine</a> for simulating patient physiology
## Getting Started
### Installing Pulse and CLASim
#### Pulse
To install <a href="https://gitlab.kitware.com/physiology/engine" target="__blank">Pulse repository</a> and follow the instructions there.
### Running Demo Examples
#
# FIND_PACKAGE(Pulse REQUIRED)
#
# This file will define the following variables:
# - Pulse_LIBS : The list of libraries to link against.
# - Pulse_LIB_DIR : The directory(es) where lib files are. Calling LINK_DIRECTORIES
# with this path is NOT needed.
# - Pulse_INCLUDE_DIRS : The Pulse include directories.
# - Pulse_VERSION : The version of this Pulse build. Example: "2.4.0"
# - Pulse_VERSION_MAJOR : Major version part of Pulse_VERSION. Example: "2"
# - Pulse_VERSION_MINOR : Minor version part of Pulse_VERSION. Example: "4"
# - Pulse_VERSION_PATCH : Patch version part of Pulse_VERSION. Example: "0"
#
# ===================================================================================
set(Pulse_INCLUDE_DIRS "/home/farooq/Programming/pulse/builds/install/include"
"/home/farooq/Programming/pulse/builds/install/include/bind"
"/home/farooq/Programming/pulse/builds/install/include/cdm"
)
if(MSVC)
set( Pulse_LIB_DIR "/home/farooq/Programming/pulse/builds/install/lib/$(Configuration)" )
else()#TODO XCode might need a conditional
string(TOLOWER "${CMAKE_BUILD_TYPE}" lower_build_type)
set( Pulse_LIB_DIR "/home/farooq/Programming/pulse/builds/install/lib/${lower_build_type}" )
endif()
if(MSVC)
set(LOG4CPP_LIB "log4cpp")
else()
set(LOG4CPP_LIB "liblog4cpp")
endif()
if (WIN32)
set(LIB_ENDING "lib")
elseif (APPLE)
set(LIB_ENDING "a")
else()
set(LIB_ENDING "a")
endif()
set(Pulse_INSTALL "/home/farooq/Programming/pulse/builds/install")
set(Pulse_LIBS "${Pulse_LIB_DIR}/PulseEngine.${LIB_ENDING}"
"${Pulse_LIB_DIR}/CommonDataModel.${LIB_ENDING}"
"${Pulse_LIB_DIR}/DataModelBindings.${LIB_ENDING}"
"${Pulse_LIB_DIR}/${LOG4CPP_LIB}.${LIB_ENDING}"
"${Pulse_LIB_DIR}/libprotobuf.${LIB_ENDING}"
)
set(Pulse_DEBUG_LIBS "${Pulse_LIB_DIR}/PulseEngine.${LIB_ENDING}"
"${Pulse_LIB_DIR}/CommonDataModel.${LIB_ENDING}"
"${Pulse_LIB_DIR}/DataModelBindings.${LIB_ENDING}"
"${Pulse_LIB_DIR}/${LOG4CPP_LIB}.${LIB_ENDING}"
"${Pulse_LIB_DIR}/libprotobufd.${LIB_ENDING}"
)
set( Pulse_VERSION_MAJOR "1" )
set( Pulse_VERSION_MINOR "0" )
set( Pulse_VERSION_PATCH "0" )
set( Pulse_VERSION_PATCH "1.0.0" )
......@@ -2,8 +2,9 @@ cmake_minimum_required(VERSION 3.9.4)
project(cmd)
# use ddpkg -L libconfig++-dev to find the location of libconfig.h++ and libconfig++.so
find_path(CONFIG++_INCLUDE_DIR libconfig.h++ /usr/include /usr/local/include)
find_library(CONFIG++_LIBRARY NAMES config++ PATH /usr/lib /usr/local/lib)
find_library(CONFIG++_LIBRARY NAMES libconfig++.a PATH /usr/lib/x86_64-linux-gnu/)
include_directories(include)
......
......@@ -3,7 +3,7 @@
#include <thread>
#include <vector>
#include <map>
#include <libconfig.h++>
#include <libconfig.h>
#include <time.h> /* clock_t, clock, CLOCKS_PER_SEC */
#include "Pump.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment