First public contribution.
1 # Copyright (c) 2012 Stéphane Lenclud.
3 # This component and the accompanying materials are made available
4 # under the terms of the License "Eclipse Public License v1.0"
5 # which accompanies this distribution, and is available
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 # Initial Contributors:
13 push_target(centralrepository)
16 #-------------------------------------------------------------------
17 #Add this *.cmake file to our source tree
18 #-------------------------------------------------------------------
20 #Make sure all the output from all projects will go in one place
21 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
22 #Visual Studio IDE folders
23 source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
24 source_group(Includes REGULAR_EXPRESSION ".+\\.h$")
25 source_group(Def REGULAR_EXPRESSION ".+\\.def$")
26 #-------------------------------------------------------------------
28 #-------------------------------------------------------------------
30 #-------------------------------------------------------------------
32 add_source(cenrepcli_uid.cpp)
34 set (sourcepath ../cenrepcli/)
35 add_source(centralrepository.cpp clirep.cpp)
37 #-------------------------------------------------------------------
38 set (sourcepath ../bwins/)
39 add_source(CENTRALREPOSITORYU.def)
40 #-------------------------------------------------------------------
42 #-------------------------------------------------------------------
43 #Define our source and target
44 #-------------------------------------------------------------------
46 add_library(centralrepository SHARED ${source})
47 target_link_libraries(centralrepository edll euser)
48 #-------------------------------------------------------------------
51 #-------------------------------------------------------------------
52 #Fix up include directories
53 #-------------------------------------------------------------------
54 user_include(../include)
55 user_include(../cenrepsrv)
56 system_include(/epoc32/include)
57 system_include(/epoc32/include/platform)
58 #-------------------------------------------------------------------
61 #-------------------------------------------------------------------
62 #Fix up compiler defines
63 #-------------------------------------------------------------------
64 #add_define(SYMBIAN_PKCS12)
65 #add_define(SYMBIAN_ENABLE_SPLIT_HEADERS)
66 #add_define(SYMBIAN_ENABLE_PUBLIC_PLATFORM_HEADER_SPLIT)
67 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
68 #add_define(__KERNEL_MODE__)
69 #-------------------------------------------------------------------
76 pop_target(centralrepository)