Files
itgmania212121/extern/CMakeProject-mad.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

52 lines
1.4 KiB
CMake

list(APPEND MAD_SRC
"mad-0.15.1b/bit.c"
"mad-0.15.1b/decoder.c"
"mad-0.15.1b/fixed.c"
"mad-0.15.1b/frame.c"
"mad-0.15.1b/huffman.c"
"mad-0.15.1b/layer12.c"
"mad-0.15.1b/layer3.c"
"mad-0.15.1b/stream.c"
"mad-0.15.1b/synth.c"
"mad-0.15.1b/timer.c"
"mad-0.15.1b/version.c"
)
list(APPEND MAD_HPP
"mad-0.15.1b/bit.h"
"mad-0.15.1b/decoder.h"
"mad-0.15.1b/fixed.h"
"mad-0.15.1b/frame.h"
"mad-0.15.1b/global.h"
"mad-0.15.1b/huffman.h"
"mad-0.15.1b/layer12.h"
"mad-0.15.1b/layer3.h"
"mad-0.15.1b/mad.h"
"mad-0.15.1b/stream.h"
"mad-0.15.1b/synth.h"
"mad-0.15.1b/timer.h"
"mad-0.15.1b/version.h"
)
source_group("" FILES ${MAD_SRC} ${MAD_HPP})
add_library("mad" ${MAD_SRC} ${MAD_HPP})
set_property(TARGET "mad" PROPERTY FOLDER "External Libraries")
disable_project_warnings("mad")
if(MSVC)
sm_add_compile_definition("mad" _CRT_SECURE_NO_WARNINGS)
elseif(APPLE)
sm_add_compile_definition("mad" HAVE_ASSERT_H=1)
sm_add_compile_definition("mad" HAVE_DLFCN_H=1)
sm_add_compile_definition("mad" HAVE_ERRNO_H=1)
sm_add_compile_definition("mad" HAVE_FORK=1)
sm_add_compile_definition("mad" HAVE_INTTYPES_H=1)
sm_add_compile_definition("mad" HAVE_LIMITS_H=1)
sm_add_compile_definition("mad" HAVE_MEMORY_H=1)
sm_add_compile_definition("mad" HAVE_WAITPID=1)
sm_add_compile_definition("mad" SIZEOF_LONG=4)
sm_add_compile_definition("mad" FPM_64BIT=1)
endif(MSVC)