forked from dominikschnitzer/musly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ac3530
commit 8003ea1
Showing
72 changed files
with
10,670 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}) | ||
|
Oops, something went wrong.