PROJECT(streamfeeder)

cmake_minimum_required(VERSION 2.4.0)

SET(CMAKE_MODULE_PATH "." ${CMAKE_MODULE_PATH})

find_package(Qt4 REQUIRED) # find and setup Qt4 for this project
find_package(TagLib REQUIRED)

include(${QT_USE_FILE} ${TAGLIB_INCLUDE_DIR})

#if you don't want the full compiler output, remove the following line
SET(CMAKE_VERBOSE_MAKEFILE ON)

#add definitions, compiler switches, etc.
ADD_DEFINITIONS(-Wall -O2 -I ${TAGLIB_INCLUDE_DIR})

#list all source files here
ADD_EXECUTABLE(streamfeeder main.cpp argumentlist.cpp collectionmanager.cpp track.cpp playlist.cpp )

#need to link to some other libraries? just add them here
TARGET_LINK_LIBRARIES( streamfeeder ${QT_LIBRARIES} ${TAGLIB_LIBRARIES})
