2016-05-09 15:57:26 +02:00
|
|
|
cmake_minimum_required (VERSION 2.8)
|
2016-04-06 00:34:42 +02:00
|
|
|
|
2016-05-09 15:57:26 +02:00
|
|
|
project (MPDBliss C)
|
2016-04-06 00:34:42 +02:00
|
|
|
|
2016-05-09 15:57:26 +02:00
|
|
|
add_subdirectory (bliss)
|
2016-04-06 00:34:42 +02:00
|
|
|
|
2016-05-09 16:13:42 +02:00
|
|
|
file (GLOB COMMON_SRC "src/*.c")
|
2016-05-09 15:57:26 +02:00
|
|
|
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_check_modules(MULTIMEDIA REQUIRED libavformat libavutil libavcodec)
|
2016-05-19 17:59:33 +02:00
|
|
|
include_directories(${MULTIMEDIA_INCLUDE_DIRS} include/ bliss/include)
|
|
|
|
link_directories(${MULTIMEDIA_LIBRARY_DIRS})
|
|
|
|
add_definitions(${MULTIMEDIA_CFLAGS_OTHER})
|
2016-05-09 15:57:26 +02:00
|
|
|
add_definitions (-Wall -Wno-long-long -pedantic -std=c99)
|
2016-04-06 00:34:42 +02:00
|
|
|
|
|
|
|
add_executable (mpdbliss
|
2016-05-09 16:13:42 +02:00
|
|
|
${COMMON_SRC} "main_mpd.c")
|
2016-04-06 00:34:42 +02:00
|
|
|
|
|
|
|
target_link_libraries (mpdbliss
|
|
|
|
m
|
|
|
|
sqlite3
|
|
|
|
mpdclient
|
|
|
|
bliss)
|
2016-05-09 16:13:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
add_executable (argsbliss
|
|
|
|
${COMMON_SRC} "main_args.c")
|
|
|
|
|
|
|
|
target_link_libraries (argsbliss
|
|
|
|
m
|
|
|
|
sqlite3
|
|
|
|
bliss)
|