As with the previous PR, I exported the include directory this time as an INTERFACE property.
Also, I changed add_definitions with a target_compile_definitions for the macro CMINPACK_NO_DLL. This time, I used PUBLIC, as it is needed either for building cminpack itself and either for building other projects (CMINPACK_NO_DLL it is used for defining CMINPACK_EXPORT inside cminpack.h).
Note: CMINPACK_EXPORT expand in __declspec(dllimport) if CMINPACK_NO_DLL is not defined.
On the other hand, this CMake script will build cminpack with CMINPACK_NO_DLL defined if no preferences are specified, so possible compilation issues can arise if you're trying to integrate cminpack from a subdirectory (without install).
Coverage remained the same at 94.105% when pulling 97699e2ef4fa2a3633a4abe3f603636c93587831 on chaplin89:master into d9557c3f425b03922fff8e851a25d231312f876f on devernay:master.
Coverage remained the same at 94.105% when pulling 97699e2ef4fa2a3633a4abe3f603636c93587831 on chaplin89:master into d9557c3f425b03922fff8e851a25d231312f876f on devernay:master.
As with the previous PR, I exported the include directory this time as an INTERFACE property.
Also, I changed add_definitions with a target_compile_definitions for the macro CMINPACK_NO_DLL. This time, I used PUBLIC, as it is needed either for building cminpack itself and either for building other projects (CMINPACK_NO_DLL it is used for defining CMINPACK_EXPORT inside cminpack.h).
Note: CMINPACK_EXPORT expand in __declspec(dllimport) if CMINPACK_NO_DLL is not defined. On the other hand, this CMake script will build cminpack with CMINPACK_NO_DLL defined if no preferences are specified, so possible compilation issues can arise if you're trying to integrate cminpack from a subdirectory (without install).