use field names instead of * in the SELECT statement
[jkt-jerboa.git] / src / CMakeLists.txt
blob616384716f3a20f468e2088d2aa7e8e15969e009
1 SET(
2     PLUGINS
3     InfoWidget
4         Mpris
5         ReplayGain
6         Scrobbler
7         TrayIcon
10 ##############################################
11 # You probably don't want to edit below here #
12 ##############################################
13 # Everything for the main UI is in core/CMakeLists.txt
15 # Turn the set of WITH_Foo_PLUGIN into an array of ACTIVE_PLUGINS
16 FOREACH(Plugin ${PLUGINS})
17         OPTION("WITH_${Plugin}_PLUGIN" "Build and include the ${Plugin} Plugin" ON)
18         IF(WITH_${Plugin}_PLUGIN)
19                 SET(ACTIVE_PLUGINS ${ACTIVE_PLUGINS} ${Plugin})
20         ENDIF(WITH_${Plugin}_PLUGIN)
21 ENDFOREACH(Plugin ${PLUGINS})
23 # Add the subdirectories
24 ADD_SUBDIRECTORY(core)
25 ADD_SUBDIRECTORY(plugins)
27 # Add the images
28 QT4_ADD_RESOURCES( RESOURCE_SOURCES ../jerboa.qrc )
30 # Put Jerboa in the top level
31 SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
33 # Sources
34 ADD_EXECUTABLE(
35     jerboa 
36     WIN32
37     ${RESOURCE_SOURCES}
40 TARGET_LINK_LIBRARIES(
41     jerboa
42     core
43         ${PHONON_LIBRARY}
44     ${ACTIVE_PLUGINS}
45     ${QT_LIBRARIES}
46     ${TAGLIB_LIBRARY}
49 IF(APPLE)
50         INSTALL(TARGETS jerboa DESTINATION MacOS)
51         INSTALL(FILES ../images/jerboa.icns DESTINATION Resources)
53         # Put qt in our appdir
54         INSTALL_QT_FRAMEWORKS()
55         INSTALL_QT_PLUGINS(sqldrivers/libqsqlite imageformats/libqgif imageformats/libqjpeg phonon_backend/libphonon_qt7 imageformats/libqsvg iconengines/libqsvgicon)
57         # Relocate main executable's qt linkage
58         RELOCATE_QT_LIBRARIES(MacOS/jerboa)
60         # Install taglib to the appdir
61         INSTALL_OSX_LIBRARY(${TAGLIB_LIBRARY})
63         # Need the real thing we're linked against...
64         GET_FILENAME_COMPONENT(TAGLIB_PATH ${TAGLIB_LIBRARY} PATH)
65         GET_FILENAME_COMPONENT(TAGLIB_NAME ${TAGLIB_LIBRARY} NAME_WE)
66         # Relocate Jerboa against local taglib
67         RELOCATE_OSX_LIBRARY(${TAGLIB_PATH}/${TAGLIB_NAME}.1.dylib "@executable_path/libtag.dylib" MacOS/jerboa)
69         # Make a dmg
70         COMPRESS_PACKAGE(git-post-0.2)
71 ELSE(APPLE)
72         INSTALL(TARGETS jerboa DESTINATION bin)
73 ENDIF(APPLE)