~brandontschaefer/unity/bump-to-new-nux-abi

« back to all changes in this revision

Viewing changes to lockscreen/CMakeLists.txt

  • Committer: Andrea Azzarone
  • Date: 2013-12-28 17:34:36 UTC
  • mto: (3566.5.438 unity)
  • mto: This revision was merged to the branch mainline in revision 3703.
  • Revision ID: azzaronea@gmail.com-20131228173436-jqschonskxaj5xx3
Initial commit for the unity lockscreen. UserAuthenticator added with tests too.

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 (LOCKSCREEN_SOURCES
 
20
     LockScreenController.cpp
 
21
     LockScreenShield.cpp
 
22
     UserAuthenticatorPam.cpp
 
23
     )
 
24
 
 
25
add_library (lockscreen-lib STATIC ${LOCKSCREEN_SOURCES})
 
26
add_dependencies (lockscreen-lib unity-core-${UNITY_API_VERSION} unity-shared)
 
27
add_pch(pch/lockscreen_pch.hh lockscreen-lib)
 
28
 
 
29
#
 
30
# Standalone variant
 
31
#
 
32
add_executable (lockscreen StandaloneLockScreen.cpp)
 
33
target_link_libraries (lockscreen lockscreen-lib unity-shared unity-shared-standalone)