Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add header files for IDEs #1338

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

darbyjohnston
Copy link
Contributor

Hi, as a follow up to #1279, I found a couple more places where header files were missing from the CMakeLists.txt files. Adding the header files to the CMakeLists.txt files allows them to show up in IDEs.

Totally unrelated, but while I was making the changes I noticed there were three copies of the file "tmpDir.h" in the tests directories? Maybe that functionality could be refactored into "ImfMisc.h"?

Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
@cary-ilm
Copy link
Member

It would definitely be good to clean up the multiple tmpDir.h files, although since this is strictly internal to the test suite, it would be best not to further pollute ImfMisc.h, since that's included lots of places. tmpDir.h appears in OpenEXRTest, OpenEXRUtilTest, and OpenEXRFuzzTest. It's a bit sloppy, but could you leave it in OpenEXRTest and have the other directories include it via "../OpenEXRTest/tmpDir.h".

Copy link
Member

@cary-ilm cary-ilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@darbyjohnston
Copy link
Contributor Author

Adding "../OpenEXRTest" to the include path for the other tests seems reasonable, "tmpDir.h" just contains a few macros. I'll make a separate PR for that.

@cary-ilm cary-ilm merged commit 600d173 into AcademySoftwareFoundation:main Feb 21, 2023
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Mar 3, 2023
Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
cary-ilm pushed a commit that referenced this pull request Mar 5, 2023
Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
@cary-ilm cary-ilm added the v3.1.6 label Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants