-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (27 loc) · 925 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# simple phonon media player
# GPL 2 or later
# copyright 2009 sandsmark
# love long and prosper
# So it won't whine. I'm not aware of any reason we can't go lower.
cmake_minimum_required(VERSION 2.6)
project (simpleplayer)
set (simpleplayer_srcs
simpleplayer.cpp
fht.cpp
analyzerbase.cpp
boomanalyzer.cpp
blockanalyzer.cpp)
set (simpleplayer_hdrs
simpleplayer.h
boomanalyzer.h
analyzerbase.h
blockanalyzer.h)
add_definitions(-Wall)
find_package(Qt4 REQUIRED)
find_package(Phonon REQUIRED)
include(${QT_USE_FILE} ${PHONON_INCLUDE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
qt4_wrap_cpp(simpleplayer_moc ${simpleplayer_hdrs})
add_executable(simpleplayer ${simpleplayer_srcs} ${simpleplayer_moc})
target_link_libraries(simpleplayer ${QT_LIBRARIES} ${PHONON_LIBRARY})
install(TARGETS simpleplayer DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)