2019-07-17 13:37:18 -04:00
|
|
|
cmake_minimum_required(VERSION 3.6)
|
|
|
|
project(TeaMusic)
|
|
|
|
|
|
|
|
set(CMAKE_VERBOSE_MAKEFILE ON)
|
2020-02-01 08:32:16 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fpermissive -Wall -Wno-sign-compare -Wno-reorder -static-libgcc -static-libstdc++")
|
2019-07-17 13:37:18 -04:00
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELEASE} -O3")
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/enviroment/)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libs/)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
include_directories(../music/include/)
|
|
|
|
add_definitions(-DLTM_DESC)
|
|
|
|
|
|
|
|
#The basic library
|
|
|
|
add_library(TeaMusic SHARED src/MusicPlayer.cpp)
|
2020-02-01 08:32:16 -05:00
|
|
|
target_link_libraries(TeaMusic PUBLIC TeaSpeak libevent::core libevent::pthreads)
|
2019-07-17 13:37:18 -04:00
|
|
|
|
|
|
|
#The test file
|
2020-02-01 08:32:16 -05:00
|
|
|
#add_executable(TeaMusicTest ${MUSIC_SOURCE_FILES} main.cpp)
|
|
|
|
#target_link_libraries(TeaMusicTest ProviderFFMpeg ProviderYT ProviderOpus TeaMusic pthread ThreadPool opus asound opusfile stdc++fs dl mpg123 avformat avcodec avutil TeaSpeak CXXTerminal event jsoncpp)
|