os/boardsupport/emulator/emulatorbsp/econsnogui.cmake
changeset 1 260cb5ec6c19
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/boardsupport/emulator/emulatorbsp/econsnogui.cmake	Tue Jun 10 14:32:02 2014 +0200
     1.3 @@ -0,0 +1,69 @@
     1.4 +# Copyright (c) 2009-2012 Stéphane Lenclud.
     1.5 +# All rights reserved.
     1.6 +# This component and the accompanying materials are made available
     1.7 +# under the terms of the License "Eclipse Public License v1.0"
     1.8 +# which accompanies this distribution, and is available
     1.9 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +#
    1.11 +# Initial Contributors:
    1.12 +# Stéphane Lenclud.
    1.13 +#
    1.14 +
    1.15 +####################
    1.16 +push_target(econsnogui)
    1.17 +####################
    1.18 +
    1.19 +#-------------------------------------------------------------------
    1.20 +#Add this *.cmake file to our source tree
    1.21 +#-------------------------------------------------------------------
    1.22 +add_cmake_source()
    1.23 +#Make sure all the output from all projects will go in one place
    1.24 +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
    1.25 +#Visual Studio IDE folders
    1.26 +source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
    1.27 +source_group(Includes REGULAR_EXPRESSION ".+\\.h$") 	
    1.28 +source_group(Def REGULAR_EXPRESSION ".+\\.def$") 	
    1.29 +#-------------------------------------------------------------------
    1.30 +
    1.31 +#-------------------------------------------------------------------
    1.32 +#Add project source files
    1.33 +#-------------------------------------------------------------------
    1.34 +set (sourcepath ./)
    1.35 +add_source(econsnogui_uid.cpp)
    1.36 +
    1.37 +set (sourcepath ./specific/)
    1.38 +add_source(econsnogui.cpp)
    1.39 +#Def
    1.40 +set (sourcepath ./bwins/)
    1.41 +add_source(econsnoguiU.def)
    1.42 +#-------------------------------------------------------------------
    1.43 +
    1.44 +#-------------------------------------------------------------------
    1.45 +#Define our source and target
    1.46 +#-------------------------------------------------------------------
    1.47 +get_source(source)
    1.48 +add_library (econsnogui SHARED ${source})
    1.49 +target_link_libraries(econsnogui edll euser)
    1.50 +#Following is needed to be able to load our DLL dynamically
    1.51 +set_target_properties(econsnogui PROPERTIES LINK_FLAGS "/INCLUDE:__E32Dll")
    1.52 +#WIN32 libraries
    1.53 +#target_link_libraries(econsnogui kernel32 user32 winmm)
    1.54 +#-------------------------------------------------------------------
    1.55 +
    1.56 +#-------------------------------------------------------------------
    1.57 +#Fix up include directories
    1.58 +#-------------------------------------------------------------------
    1.59 +system_include(/epoc32/include)
    1.60 +system_include(/epoc32/include/platform)
    1.61 +#-------------------------------------------------------------------
    1.62 +
    1.63 +#-------------------------------------------------------------------
    1.64 +#Fix up compiler defines
    1.65 +#-------------------------------------------------------------------
    1.66 +#add_define(__DLL__)
    1.67 +#-------------------------------------------------------------------
    1.68 +
    1.69 +
    1.70 +####################
    1.71 +pop_target(econsnogui)
    1.72 +####################
    1.73 \ No newline at end of file