initial commit
This commit is contained in:
88
CMakeLists.txt
Executable file
88
CMakeLists.txt
Executable file
@@ -0,0 +1,88 @@
|
||||
# Usage:
|
||||
# Create build folder, like RC-build next to RobotControl and WifiScan folder
|
||||
# CD into build folder and execute 'cmake -DCMAKE_BUILD_TYPE=Debug ../RobotControl'
|
||||
# make
|
||||
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
||||
|
||||
# select build type
|
||||
SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" )
|
||||
|
||||
PROJECT(Beat)
|
||||
|
||||
IF(NOT CMAKE_BUILD_TYPE)
|
||||
MESSAGE(STATUS "No build type selected. Default to Debug")
|
||||
SET(CMAKE_BUILD_TYPE "Debug")
|
||||
ENDIF()
|
||||
|
||||
|
||||
|
||||
|
||||
# pkg-config --cflags --libs gstreamer-1.0
|
||||
INCLUDE_DIRECTORIES(
|
||||
/usr/include/gstreamer-1.0
|
||||
/usr/include/glib-2.0
|
||||
/usr/lib64/glib-2.0/include
|
||||
/usr/lib/x86_64-linux-gnu/glib-2.0/include
|
||||
/mnt/vm/workspace/IRGame/
|
||||
)
|
||||
|
||||
|
||||
FILE(GLOB HEADERS
|
||||
./*.h
|
||||
)
|
||||
|
||||
FILE(GLOB SOURCES
|
||||
./*.cpp
|
||||
)
|
||||
|
||||
|
||||
# system specific compiler flags
|
||||
ADD_DEFINITIONS(
|
||||
# -O2
|
||||
-std=c++11
|
||||
-Wall
|
||||
-Werror=return-type
|
||||
-Wextra
|
||||
#-g
|
||||
-O2
|
||||
# #-Wconversion
|
||||
)
|
||||
|
||||
|
||||
|
||||
# GSTREAMER PLUGIN
|
||||
|
||||
ADD_LIBRARY(
|
||||
gst_beat_plugin SHARED
|
||||
plugin.cpp
|
||||
${HEADERS}
|
||||
)
|
||||
|
||||
# pkg-config --cflags --libs gstreamer-1.0
|
||||
TARGET_LINK_LIBRARIES(
|
||||
gst_beat_plugin
|
||||
gstreamer-1.0
|
||||
gstaudio-1.0
|
||||
gobject-2.0
|
||||
glib-2.0
|
||||
)
|
||||
|
||||
|
||||
# EXECUTABLE RECORDING FROM PULSEAUDIO
|
||||
|
||||
ADD_EXECUTABLE(
|
||||
paBeatRecorder
|
||||
main.cpp
|
||||
${HEADERS}
|
||||
#${SOURCES}
|
||||
)
|
||||
|
||||
TARGET_LINK_LIBRARIES(
|
||||
paBeatRecorder
|
||||
pulse
|
||||
pulse-simple
|
||||
pthread
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user