First public contribution.
1 # Copyright (c) 2009 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 #-------------------------------------------------------------------
28 ### EPOC: emulator executable
30 #-------------------------------------------------------------------
31 #Define our source and target
32 #-------------------------------------------------------------------
34 add_executable(epoc WIN32 ${source} ../euser/epoc/symc/uc_epoc.cpp ../euser/epoc/symc/epoc_uid.cpp)
35 # Using /INCLUDE to obtain same effect has MMP's FIRSTLIB
36 set_target_properties(epoc PROPERTIES LINK_FLAGS "/INCLUDE:__E32Startup")
37 target_link_libraries(epoc estub eexe euser)
38 #-------------------------------------------------------------------
42 #-------------------------------------------------------------------
43 #Fix up include directories
44 #-------------------------------------------------------------------
45 system_include(/epoc32/include)
46 system_include(/epoc32/include/platform)
47 #-------------------------------------------------------------------