Add header generation dependency for R

This commit is contained in:
Ian Bell
2015-06-30 21:33:49 -06:00
parent 6b13466cd9
commit 39b1c90004

View File

@@ -926,6 +926,7 @@ if (COOLPROP_R_MODULE)
# No lib prefix for the shared library
set_target_properties(CoolProp PROPERTIES PREFIX "")
add_dependencies (CoolProp generate_headers)
add_custom_command(TARGET CoolProp
POST_BUILD
COMMAND python example_generator.py R "${CMAKE_CURRENT_BINARY_DIR}/Example.R"