2016-05-26 05:02:09 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
2009-05-06 09:12:12 +00:00
|
|
|
|
2016-05-26 05:02:09 +00:00
|
|
|
project(musikbox)
|
2009-07-18 11:50:49 +00:00
|
|
|
|
2016-05-26 05:02:09 +00:00
|
|
|
set (musikbox_VERSION_MAJOR 0)
|
|
|
|
set (musikbox_VERSION_MINOR 1)
|
|
|
|
|
2016-06-03 15:55:56 +00:00
|
|
|
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++11 -fpermissive -g")
|
2009-07-18 11:50:49 +00:00
|
|
|
|
|
|
|
set (BOOST_LIBS
|
2016-05-26 05:02:09 +00:00
|
|
|
system
|
|
|
|
date_time
|
|
|
|
filesystem
|
|
|
|
iostreams
|
|
|
|
thread
|
|
|
|
regex
|
2009-07-18 11:50:49 +00:00
|
|
|
)
|
|
|
|
|
2016-05-26 05:02:09 +00:00
|
|
|
find_package(Boost 1.60.0 REQUIRED ${BOOST_LIBS})
|
|
|
|
|
|
|
|
add_definitions (-DHAVE_BOOST
|
|
|
|
-D_FILE_OFFSET_BITS=64)
|
|
|
|
set (BOOST_LINK_LIBS
|
|
|
|
${Boost_LIBRARIES})
|
2011-02-17 00:22:30 +00:00
|
|
|
|
2016-05-27 07:22:26 +00:00
|
|
|
#message(STATUS "boost libs: " ${BOOST_LINK_LIBS})
|
|
|
|
#message(STATUS "boost includes: " ${Boost_INCLUDE_DIRS})
|
2016-05-26 05:02:09 +00:00
|
|
|
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Modules)
|
2009-07-18 11:50:49 +00:00
|
|
|
|
2009-05-06 09:12:12 +00:00
|
|
|
SET (CMAKE_BUILD_TYPE DEBUG)
|
2016-05-26 05:02:09 +00:00
|
|
|
set (LIBRARY_OUTPUT_PATH ${musikbox_SOURCE_DIR}/bin/plugins)
|
|
|
|
set (EXECUTABLE_OUTPUT_PATH ${musikbox_SOURCE_DIR}/bin)
|
2009-07-18 11:50:49 +00:00
|
|
|
|
2016-05-26 05:02:09 +00:00
|
|
|
link_directories (${musikbox_SOURCE_DIR}/bin/plugins)
|
2009-07-18 11:50:49 +00:00
|
|
|
|
2016-05-26 05:02:09 +00:00
|
|
|
set (musikbox_LINK_LIBS
|
|
|
|
${linux_LINK_LIBS}
|
|
|
|
${BOOST_LINK_LIBS}
|
2016-05-26 17:02:31 +00:00
|
|
|
dl
|
2009-07-18 11:50:49 +00:00
|
|
|
)
|
|
|
|
|
2011-02-10 13:11:38 +00:00
|
|
|
include_directories (
|
2016-05-26 05:02:09 +00:00
|
|
|
"${musikbox_SOURCE_DIR}/src"
|
|
|
|
"${musikbox_SOURCE_DIR}/src/core"
|
2016-05-26 06:31:15 +00:00
|
|
|
"${musikbox_SOURCE_DIR}/src/musikbox"
|
2016-05-26 05:02:09 +00:00
|
|
|
"${musikbox_SOURCE_DIR}/src/3rdparty/include"
|
|
|
|
)
|
2009-05-06 09:12:12 +00:00
|
|
|
|
|
|
|
add_subdirectory(src/core)
|
2016-05-26 06:31:15 +00:00
|
|
|
add_subdirectory(src/musikbox)
|
2016-05-26 17:02:31 +00:00
|
|
|
add_subdirectory(src/contrib/taglib_plugin)
|
2016-06-05 04:25:43 +00:00
|
|
|
add_subdirectory(src/contrib/m4adecoder)
|
2016-05-27 07:22:26 +00:00
|
|
|
add_subdirectory(src/contrib/oggdecoder)
|
2016-05-26 20:33:36 +00:00
|
|
|
add_subdirectory(src/contrib/mpg123decoder)
|
2016-05-28 20:51:54 +00:00
|
|
|
add_subdirectory(src/contrib/flacdecoder)
|
2016-05-27 03:19:00 +00:00
|
|
|
add_subdirectory(src/contrib/coreaudioout)
|