dc94728628
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.
25 lines
657 B
CMake
25 lines
657 B
CMake
# Copied from marsyas, which is also copied from fqterm.
|
|
# Further modifications are done.
|
|
|
|
IF(UNIX)
|
|
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
SET(OSS_HDR_NAME "linux/soundcard.h")
|
|
ELSE(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|
SET(OSS_HDR_NAME "sys/soundcard.h")
|
|
ENDIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
ENDIF(UNIX)
|
|
|
|
FIND_PATH(OSS_INCLUDE_DIR "${OSS_HDR_NAME}"
|
|
"/usr/include" "/usr/local/include"
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(OSS DEFAULT_MSG OSS_INCLUDE_DIR)
|
|
|
|
MARK_AS_ADVANCED (
|
|
OSS_FOUND
|
|
OSS_INCLUDE_DIR
|
|
)
|