add a bit more metadata such as track lengt, making the progress bar behave corectly...
[amarok.git] / CMakeLists.txt
blob499997ada69542f75c6aa539ff0cb2bdd8012c5d
1 project(Amarok)
3 find_package(KDE4 REQUIRED)
4 include (KDE4Defaults)
5 include (MacroLibrary)
7 include(CheckIncludeFile)
8 include(CheckIncludeFiles)
9 include(CheckSymbolExists)
10 include(CheckFunctionExists)
11 include(CheckLibraryExists)
12 include(CheckPrototypeExists)
13 include(CheckTypeSize)
14 include(MacroBoolTo01)
16 set( CMAKE_MODULE_PATH    ${CMAKE_MODULE_PATH}
17                           ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules )
19 add_definitions(-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
21 find_package(Taglib REQUIRED)
22 find_package(RUBY REQUIRED)
24 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
25 include_directories (${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE4_INCLUDES} ${TAGLIB_INCLUDES})
27 macro_optional_find_package(Njb)
28 macro_optional_find_package(Ifp)
29 macro_optional_find_package(MySQL)
30 macro_optional_find_package(PostgreSQL)
31 macro_optional_find_package(Libvisual)
32 macro_optional_find_package(Mp4v2)
33 macro_optional_find_package(Xine)
34 macro_optional_find_package(Helix)
35 macro_optional_find_package(Mtp)
36 macro_optional_find_package(GObject)
37 macro_optional_find_package(GStreamer)
38 macro_optional_find_package(OpenGL)
40 macro_bool_to_01(LIBVISUAL_FOUND HAVE_LIBVISUAL)
42 check_type_size("int" SIZEOF_INT)
43 check_type_size("long" SIZEOF_LONG)
45 configure_file (config-amarok.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-amarok.h )
47 add_subdirectory( src )