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

CMake revamp #21

Merged
merged 18 commits into from
Jul 17, 2016
Merged

CMake revamp #21

merged 18 commits into from
Jul 17, 2016

Conversation

bcampbell
Copy link
Contributor

These are all my changes to get DevIL building and installing via CMake.
It works for me now on linux and mac, but I've not tried it on windows yet. I've been pretty careful to keep it all cross-platform, so I don't think there'll be any big issues getting it working.

There's still lots of scope for refining things, but it's at the point where I need other people to hammer on it to show up any problems.

bcampbell and others added 15 commits July 15, 2015 12:50
First pass at improving the cmake build. Checks for some of
the third-party libraries (png, tiff, jpeg etc) and generates
a config.h file.
The config.h file is generated from config.h.cmake.in.
see:
cmake --help-policy CMP0033
for details.
Not sure yet if we need to use any export() or install(EXPORT)
calls instead...
DOH. Was checking for FOUND_<libname> instead of <libname>_FOUND.
Use static inline for all of them. Portable across C++, C99,
GNU89, MSVC.
DevIL only so far. ILU and ILUT removed from CMakeLists.txt for now.
The issue was missing defintions of strdup() and strcasecmp(). They
are not part of the c99 standard.
On gcc they can be enabled by defining _GNU_SOURCE.
Might be some additional work for clang.
@bcampbell
Copy link
Contributor Author

Also, commit c0e964d fixes issue #22.

Not quite there, but close - needs some more finessing.
@CapsAdmin
Copy link

This works for me too using kubuntu while the current does not work and errors with not being able to find ilconfig.h or something.

ILU and ILUT seem to be independent of the IL configuration (the generated
config.h), so they don't need to know about it.
@DentonW DentonW merged commit 1ea4566 into DentonW:master Jul 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants