Update contrib.
1 # Copyright (c) 2009-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(econsnogui)
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 #-------------------------------------------------------------------
29 #Add project source files
30 #-------------------------------------------------------------------
32 add_source(econsnogui_uid.cpp)
34 set (sourcepath ./specific/)
35 add_source(econsnogui.cpp)
37 set (sourcepath ./bwins/)
38 add_source(econsnoguiU.def)
39 #-------------------------------------------------------------------
41 #-------------------------------------------------------------------
42 #Define our source and target
43 #-------------------------------------------------------------------
45 add_library (econsnogui SHARED ${source})
46 target_link_libraries(econsnogui edll euser)
47 #Following is needed to be able to load our DLL dynamically
48 set_target_properties(econsnogui PROPERTIES LINK_FLAGS "/INCLUDE:__E32Dll")
50 #target_link_libraries(econsnogui kernel32 user32 winmm)
51 #-------------------------------------------------------------------
53 #-------------------------------------------------------------------
54 #Fix up include directories
55 #-------------------------------------------------------------------
56 system_include(/epoc32/include)
57 system_include(/epoc32/include/platform)
58 #-------------------------------------------------------------------
60 #-------------------------------------------------------------------
61 #Fix up compiler defines
62 #-------------------------------------------------------------------
64 #-------------------------------------------------------------------
68 pop_target(econsnogui)