Files
itgmania212121/extern/CMakeProject-png.cmake
T
Jason Felds dc94728628 Introduce cmake (min 2.8.12) to StepMania.
tl-dr: view the Build directory to see.

This is intended to replace the project files that we presently maintain
so that only a single set is needed instead of multiples.

The following setups were used for testing:

* Windows 8 and Visual Studio 2013 Desktop Express
* Windows 7 and Visual Studio 2012
* Mac OS X Mavericks and Xcode
* Ubuntu and makefiles
* Fedora 21 and makefiles

All three operating systems can generate projects, compile, link, and
run. Windows and Mac OS X users will find their compiled binary in the
same location as before, but Linux users will be surprised: it goes
straight into the root directory, along with a symlinked GtkModules.so
as appropriate. There is no more need for a manual symlinking step.

Known issues:

* At this time, MinGW likely does not work. Extra time will be needed.
* The WITH_JPEG option may go away, and we'll just always require it.
* Some linux libraries can use the system equivalents, but that is not up yet.

For more information, check out the Build directory.
2015-03-21 20:15:15 -04:00

45 lines
1.0 KiB
CMake

set(PNG_SRC
"libpng/include/png.c"
"libpng/include/pngerror.c"
"libpng/include/pngget.c"
"libpng/include/pngmem.c"
"libpng/include/pngpread.c"
"libpng/include/pngread.c"
"libpng/include/pngrio.c"
"libpng/include/pngrtran.c"
"libpng/include/pngrutil.c"
"libpng/include/pngset.c"
"libpng/include/pngtest.c"
"libpng/include/pngtrans.c"
"libpng/include/pngwio.c"
"libpng/include/pngwrite.c"
"libpng/include/pngwtran.c"
"libpng/include/pngwutil.c"
)
set(PNG_HPP
"libpng/include/png.h"
"libpng/include/pngconf.h"
"libpng/include/pngdebug.h"
"libpng/include/pnginfo.h"
"libpng/include/pnglibconf.h"
"libpng/include/pngpriv.h"
"libpng/include/pngstruct.h"
)
source_group("" FILES ${PNG_SRC})
source_group("" FILES ${PNG_HPP})
add_library("png" ${PNG_SRC} ${PNG_HPP})
set_property(TARGET "png" PROPERTY FOLDER "External Libraries")
disable_project_warnings("png")
if(MSVC)
sm_add_compile_definition("png" _CRT_SECURE_NO_WARNINGS)
endif()
target_include_directories("png" PUBLIC "zlib")