Can now compile with catch with no errors, although there are errors within the test cases. Also added a check in the generate_headers.py file to see if the headers have already been generated (this is a proposal and can be removed) because it's time consuming when there is no changes to those files. the change is fairly dumb (check if file .JSON_done exists) and doesn't consider the modification time of the files.
Building
There are a number of ways to build the library:
Directly with Make
There is a non-windows makefile in the wrappers/SharedLibrary that can be used to make the library.
With CMAKE
The platform independent cmake program can be used. In using cmake, CoolProp uses the standard procedure:
- Make a build directory and cd to build
- cmake ..
- make
- make
Although step 1 and 2 does depend on the OS, step 3 and 4 will depend on how the program is being built. If on windows the cmake gui can be used which will perform steps 1 and 2, if using visual studio then the build process will need to be run twice.
Make needs to be called twice, the first make step will dynamically generate a number of files from the JSON fluid definitions - the second make run will actually generate the program.
Testing
CMake generates a target for testing. You can build the test executable with make testRunner.