~azzar1/unity/lp-1165097

« back to all changes in this revision

Viewing changes to shutdown/CMakeLists.txt

  • Committer: Marco Trevisan (Treviño)
  • Date: 2013-02-11 22:41:12 UTC
  • mto: This revision was merged to the branch mainline in revision 3200.
  • Revision ID: mail@3v1n0.net-20130211224112-k1nxtougs7xgdjj5
ShutdownView: first draft implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set(UNITY_SRC ../plugins/unityshell/src)
 
2
 
 
3
set (CFLAGS
 
4
     ${CACHED_UNITY_DEPS_CFLAGS}
 
5
     ${CACHED_UNITY_DEPS_CFLAGS_OTHER}
 
6
     ${PIC_FLAGS}
 
7
     )
 
8
 
 
9
string (REPLACE ";" " " CFLAGS "${CFLAGS}")
 
10
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CFLAGS}")
 
11
 
 
12
set (LIBS ${CACHED_UNITY_DEPS_LDFLAGS} ${UNITY_STANDALONE_LADD})
 
13
 
 
14
include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR})
 
15
 
 
16
#
 
17
# Headers & Sources
 
18
#
 
19
set (SHUTDOWN_SOURCES
 
20
     SessionController.cpp
 
21
     SessionController.h
 
22
     SessionView.cpp
 
23
     SessionView.h
 
24
     )
 
25
 
 
26
add_library (shutdown-lib STATIC ${SHUTDOWN_SOURCES})
 
27
add_dependencies (shutdown-lib unity-core-${UNITY_API_VERSION} unity-shared)
 
28
add_pch(pch/shutdown_pch.hh shutdown-lib)
 
29
 
 
30
#
 
31
# Standalone variant
 
32
#
 
33
add_executable (shutdown StandaloneSession.cpp)
 
34
target_link_libraries (shutdown shutdown-lib unity-shared)