use field names instead of * in the SELECT statement
[jkt-jerboa.git] / src / CMakeLists.txt
blob3e55386e62e5849ad9a819e656b456b455bfd89c
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 MESSAGE(STATUS ${CMAKE_INSTALL_PREFIX})
50 IF(APPLE)
51         INSTALL(TARGETS jerboa DESTINATION MacOS)
52         INSTALL(FILES ../images/jerboa.icns DESTINATION Resources)
54         # Put qt in our appdir
55         INSTALL_QT_FRAMEWORKS()
56         INSTALL_QT_PLUGINS(sqldrivers/libqsqlite imageformats/libqgif imageformats/libqjpeg phonon_backend/libphonon_qt7 imageformats/libqsvg iconengines/libqsvgicon)
58         # Relocate main executable's qt linkage
59         RELOCATE_QT_LIBRARIES(MacOS/jerboa)
61         # Install taglib to the appdir
62         INSTALL_OSX_LIBRARY(${TAGLIB_LIBRARY})
64         # Need the real thing we're linked against...
65         GET_FILENAME_COMPONENT(TAGLIB_PATH ${TAGLIB_LIBRARY} PATH)
66         GET_FILENAME_COMPONENT(TAGLIB_NAME ${TAGLIB_LIBRARY} NAME_WE)
67         # Relocate Jerboa against local taglib
68         RELOCATE_OSX_LIBRARY(${TAGLIB_PATH}/${TAGLIB_NAME}.1.dylib "@executable_path/libtag.dylib" MacOS/jerboa)
70         # Make a dmg
71         COMPRESS_PACKAGE(git-post-0.2)
72 ELSE(APPLE)
73         INSTALL(TARGETS jerboa DESTINATION bin)
74 ENDIF(APPLE)