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:
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 #-------------------------------------------------------------------
29 #-------------------------------------------------------------------
31 #-------------------------------------------------------------------
32 set (sourcepath ./epoc/win32/)
33 add_source(emulator.cpp)
34 #DEF file messing things up!
35 #set (sourcepath ../bwins/)
36 #add_source(emulatoru.def)
37 #-------------------------------------------------------------------
40 #-------------------------------------------------------------------
41 #Define our source and target
42 #-------------------------------------------------------------------
44 add_library (emulator SHARED ${source})
45 target_link_libraries(emulator
48 #-------------------------------------------------------------------
51 ### EMULATOR: used by euser and kernel for emulation
52 #add_library (emulator SHARED ../euser/epoc/win32/emulator.cpp) #Compile the KLIB target entry point which is l_entry.cpp: ../kernel/win32/l_entry.cpp
53 #set_target_properties(emulator PROPERTIES COMPILE_FLAGS "/Zl") #No default library
54 #set_target_properties(emulator PROPERTIES LINK_FLAGS "/ENTRY:_Win32DllMain") #Change the entry point
58 #-------------------------------------------------------------------
59 #Fix up include directories
60 #-------------------------------------------------------------------
61 system_include(/epoc32/include)
62 system_include(/epoc32/include/platform)
63 user_include(../include)
64 #-------------------------------------------------------------------
67 #-------------------------------------------------------------------
68 #Fix up compiler defines
69 #-------------------------------------------------------------------
70 #add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
71 #add_define(SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION)
72 #add_define(__EXPORT_MEMCPY__)
73 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
74 #add_define(__IN_KERNEL__)
75 #add_define(__KERNEL_MODE__)
76 #-------------------------------------------------------------------