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(
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)
70 COMPRESS_PACKAGE(git-post-0.2)
72 INSTALL(TARGETS jerboa DESTINATION bin)