Skip to content

Commit

Permalink
Initial import of musly 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikschnitzer committed Jan 10, 2014
1 parent 2ac3530 commit 8003ea1
Show file tree
Hide file tree
Showing 72 changed files with 10,670 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2013-2014, Dominik Schnitzer <[email protected]>
http://www.schnitzer.at/dominik
55 changes: 55 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# CMake buildfile generator file.
# Process with cmake to create your desired buildfiles.
#
# (c) 2013-2014, Dominik Schnitzer <[email protected]>

cmake_minimum_required(VERSION 2.8)

project(musly)

set(MUSLY_VERSION_MAJOR 0)
set(MUSLY_VERSION_MINOR 1)
set(MUSLY_VERSION "${MUSLY_VERSION_MAJOR}.${MUSLY_VERSION_MINOR}")

if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-Wall -g)
elseif (CMAKE_BUILD_TYPE STREQUAL "Release")
add_definitions(-DNDEBUG -O3)
else ()
add_definitions(-DNDEBUG -Wall -g -O3)
endif ()

option(BUILD_STATIC "Make a static build" OFF)
if (BUILD_STATIC)
set(BUILD_SHARED_LIBS OFF)

# remove -Wl,-Bdynamic
set(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS)
set(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS)
else ()
set(BUILD_SHARED_LIBS ON)
endif ()

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

find_package(Eigen3 REQUIRED)
find_package(LibAV 0.8 COMPONENTS avcodec avformat avutil REQUIRED)

configure_file(
"${PROJECT_SOURCE_DIR}/config.h.in"
"${PROJECT_BINARY_DIR}/config.h")

include_directories(
"${PROJECT_BINARY_DIR}"
"${PROJECT_SOURCE_DIR}/include")

add_subdirectory(libmusly)
add_subdirectory(musly)
add_subdirectory(include)

# Documentation
set(musly_DOC_FILES AUTHORS COPYING README)
set(musly_DOC_PATH "share/doc/musly")
install(FILES ${musly_DOC_FILES}
DESTINATION ${musly_DOC_PATH})

Loading

0 comments on commit 8003ea1

Please sign in to comment.