~brandontschaefer/unity/lp.1328677-fixv2

« back to all changes in this revision

Viewing changes to panel/CMakeLists.txt

  • Committer: Gord Allott
  • Date: 2012-05-06 23:48:38 UTC
  • mto: This revision was merged to the branch mainline in revision 2352.
  • Revision ID: gord.allott@canonical.com-20120506234838-abh00p9gdw09n0rv
panel and dash moved to subdirectories

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set(UNITY_SRC ../plugins/unityshell/src)
 
2
 
 
3
find_package (PkgConfig)
 
4
 
 
5
set (CFLAGS
 
6
     ${CACHED_UNITY_DEPS_CFLAGS}
 
7
     ${CACHED_UNITY_DEPS_CFLAGS_OTHER}
 
8
     ${MAINTAINER_CFLAGS}
 
9
     "-DGETTEXT_PACKAGE=\"unity\""
 
10
     "-I${CMAKE_CURRENT_BINARY_DIR}"
 
11
     )
 
12
add_definitions (${CFLAGS})
 
13
 
 
14
set (LIBS ${CACHED_UNITY_DEPS_LIBRARIES} "-lunity-core-${UNITY_API_VERSION} -lm -lGL -lGLU")
 
15
link_libraries (${LIBS})
 
16
 
 
17
set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS})
 
18
link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS})
 
19
 
 
20
include_directories (. .. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
 
21
 
 
22
#
 
23
# Headers & Sources
 
24
#
 
25
set (PANEL_SOURCES
 
26
     PanelController.cpp
 
27
     PanelIndicatorEntryView.cpp
 
28
     PanelIndicatorsView.cpp
 
29
     PanelMenuView.cpp
 
30
     PanelStyle.cpp
 
31
     PanelTitlebarGrabAreaView.cpp
 
32
     PanelTray.cpp
 
33
     PanelView.cpp
 
34
     WindowButtons.cpp
 
35
     WindowManager.cpp
 
36
     )
 
37
 
 
38
add_library (panel-lib STATIC ${PANEL_SOURCES})
 
39
add_dependencies (panel-lib unity-core-${UNITY_API_VERSION} unity-shared)
 
40
 
 
41
 
42
# Standalone variant
 
43
#
 
44
add_executable (panel StandalonePanel.cpp)
 
45
add_dependencies (panel panel-lib)
 
46
target_link_libraries (panel panel-lib unity-shared)