mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
-Added CMake as build system
This commit is contained in:
parent
f46b85b4bc
commit
278d72dc18
3 changed files with 64 additions and 4 deletions
12
.gitignore
vendored
12
.gitignore
vendored
|
@ -1,12 +1,16 @@
|
|||
.waf*
|
||||
.lock*
|
||||
.build*
|
||||
|
||||
planning/*
|
||||
|
||||
.tup/*
|
||||
src/*.o
|
||||
luppp
|
||||
|
||||
build/*
|
||||
buildTest/*
|
||||
/CMakeCache.txt
|
||||
/cmake_install.cmake
|
||||
/Makefile
|
||||
/src/cmake_install.cmake
|
||||
/src/liblibluppp.a
|
||||
/src/Makefile
|
||||
CMakeFiles/*
|
||||
src/CMakeFiles/*
|
||||
|
|
12
CMakeLists.txt
Normal file
12
CMakeLists.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
cmake_minimum_required (VERSION 2.6)
|
||||
|
||||
project (LUPPP)
|
||||
|
||||
set (Tutorial_VERSION_MAJOR 1)
|
||||
set (Tutorial_VERSION_MINOR 0)
|
||||
|
||||
#set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
|
||||
add_subdirectory (src)
|
44
src/CMakeLists.txt
Normal file
44
src/CMakeLists.txt
Normal file
|
@ -0,0 +1,44 @@
|
|||
|
||||
#add_library (main main.cxx)
|
||||
|
||||
find_package(PkgConfig)
|
||||
|
||||
|
||||
pkg_check_modules(CAIRO cairo)
|
||||
include_directories( ${CAIRO_INCLUDE_DIRS} )
|
||||
link_directories ( ${CAIRO_LIBRARY_DIRS} )
|
||||
#pkg_check_modules(CAIROMM cairomm-1.0)
|
||||
#include_directories( ${CAIROMM_INCLUDE_DIRS} )
|
||||
#link_directories ( ${CAIROMM_LIBRARY_DIRS} )
|
||||
|
||||
pkg_check_modules(NTK ntk)
|
||||
include_directories( ${NTK_INCLUDE_DIRS} )
|
||||
link_directories ( ${NTK_LIBRARY_DIRS} )
|
||||
|
||||
pkg_check_modules(JACK jack)
|
||||
include_directories( ${JACK_INCLUDE_DIRS} )
|
||||
link_directories ( ${JACK_LIBRARY_DIRS} )
|
||||
|
||||
pkg_check_modules(SNDFILE sndfile)
|
||||
include_directories( ${SNDFILE_INCLUDE_DIRS} )
|
||||
link_directories ( ${SNDFILE_LIBRARY_DIRS} )
|
||||
|
||||
FILE(GLOB sources *.cxx avtk/*.cxx cjson/*.c controller/*.cxx dsp/*.cxx observer/*.cxx state/*.cxx)
|
||||
#FILE(GLOB sources tests/*.cxx)
|
||||
|
||||
#add_library( libluppp ${sources} )
|
||||
|
||||
|
||||
#target_link_libraries( libluppp libluppp)
|
||||
#target_link_libraries( libluppp ${CAIRO_LIBRARIES} )
|
||||
#target_link_libraries( libluppp ${NTK_LIBRARY_DIRS} )
|
||||
#target_link_libraries( libluppp ${Jack_LIBRARY_DIRS} )
|
||||
|
||||
add_executable (main ${sources} )
|
||||
|
||||
#target_link_libraries( main libluppp)
|
||||
target_link_libraries( main ${JACK_LIBRARIES} )
|
||||
target_link_libraries( main ${NTK_LIBRARIES} )
|
||||
target_link_libraries( main ${CAIRO_LIBRARIES} )
|
||||
#target_link_libraries( main ${CAIROMM} )
|
||||
target_link_libraries( main ${SNDFILE_LIBRARIES} )
|
Loading…
Add table
Reference in a new issue