mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Updated Java wrapper to allow for different package
See issue https://github.com/CoolProp/CoolProp/issues/205 Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -337,6 +337,8 @@ if (COOLPROP_OCTAVE_MODULE)
|
||||
|
||||
set(I_FILE "${CMAKE_SOURCE_DIR}/src/CoolProp.i")
|
||||
|
||||
set(SWIG_OPTIONS "${COOLPROP_SWIG_OPTIONS}")
|
||||
SET_SOURCE_FILES_PROPERTIES(${I_FILE} PROPERTIES SWIG_FLAGS "${SWIG_OPTIONS}")
|
||||
SET_SOURCE_FILES_PROPERTIES(${I_FILE} PROPERTIES CPLUSPLUS ON)
|
||||
|
||||
SET(SWIG_MODULE_CoolProp_EXTRA_DEPS
|
||||
@@ -384,6 +386,8 @@ if (COOLPROP_CSHARP_MODULE)
|
||||
# Make a src directory to deal with file permissions problem with MinGW makefile
|
||||
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/src)
|
||||
|
||||
set(SWIG_OPTIONS "${COOLPROP_SWIG_OPTIONS}")
|
||||
SET_SOURCE_FILES_PROPERTIES(${I_FILE} PROPERTIES SWIG_FLAGS "${SWIG_OPTIONS}")
|
||||
set(I_FILE "${CMAKE_SOURCE_DIR}/src/CoolProp.i")
|
||||
|
||||
SET(SWIG_MODULE_CoolProp_EXTRA_DEPS
|
||||
@@ -458,6 +462,8 @@ if (COOLPROP_JAVA_MODULE)
|
||||
|
||||
set(I_FILE "${CMAKE_SOURCE_DIR}/src/CoolProp.i")
|
||||
|
||||
set(SWIG_OPTIONS "${COOLPROP_SWIG_OPTIONS}")
|
||||
SET_SOURCE_FILES_PROPERTIES(${I_FILE} PROPERTIES SWIG_FLAGS "${SWIG_OPTIONS}")
|
||||
SET_SOURCE_FILES_PROPERTIES(${I_FILE} PROPERTIES CPLUSPLUS ON)
|
||||
|
||||
SET(SWIG_MODULE_CoolProp_EXTRA_DEPS
|
||||
|
||||
@@ -58,7 +58,13 @@ Once the dependencies are installed, you can run the builder and tests using::
|
||||
make install
|
||||
# Run the integration tests
|
||||
ctest --extra-verbose
|
||||
|
||||
If you want to change the package that CoolProp resides in, you can do so by changing the cmake call to read::
|
||||
|
||||
cmake .. -DCOOLPROP_JAVA_MODULE=ON -DBUILD_TESTING=ON -DCOOLPROP_SWIG_OPTIONS="-package package.name"
|
||||
|
||||
where ``package.name`` is replaced with the desired name
|
||||
|
||||
Windows (32-bit and 64-bit)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -76,3 +82,9 @@ You need to just slightly modify the building procedure::
|
||||
make install
|
||||
# Run the integration tests
|
||||
ctest --extra-verbose
|
||||
|
||||
If you want to change the package that CoolProp resides in, you can do so by changing the cmake call to read::
|
||||
|
||||
cmake .. -DCOOLPROP_JAVA_MODULE=ON -DBUILD_TESTING=ON -DCOOLPROP_SWIG_OPTIONS="-package package.name"
|
||||
|
||||
where ``package.name`` is replaced with the desired name
|
||||
Reference in New Issue
Block a user