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)
28 QT4_ADD_RESOURCES( RESOURCE_SOURCES ../jerboa.qrc )
30 # Put Jerboa in the top level
31 SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
40 TARGET_LINK_LIBRARIES(
49 MESSAGE(STATUS ${CMAKE_INSTALL_PREFIX})
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)
71 COMPRESS_PACKAGE(git-post-0.2)
73 INSTALL(TARGETS jerboa DESTINATION bin)