os/boardsupport/emulator/emulatorbsp/econsnogui.cmake
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@1
     1
# Copyright (c) 2009-2012 Stéphane Lenclud.
sl@1
     2
# All rights reserved.
sl@1
     3
# This component and the accompanying materials are made available
sl@1
     4
# under the terms of the License "Eclipse Public License v1.0"
sl@1
     5
# which accompanies this distribution, and is available
sl@1
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@1
     7
#
sl@1
     8
# Initial Contributors:
sl@1
     9
# Stéphane Lenclud.
sl@1
    10
#
sl@1
    11
sl@1
    12
####################
sl@1
    13
push_target(econsnogui)
sl@1
    14
####################
sl@1
    15
sl@1
    16
#-------------------------------------------------------------------
sl@1
    17
#Add this *.cmake file to our source tree
sl@1
    18
#-------------------------------------------------------------------
sl@1
    19
add_cmake_source()
sl@1
    20
#Make sure all the output from all projects will go in one place
sl@1
    21
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
sl@1
    22
#Visual Studio IDE folders
sl@1
    23
source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
sl@1
    24
source_group(Includes REGULAR_EXPRESSION ".+\\.h$") 	
sl@1
    25
source_group(Def REGULAR_EXPRESSION ".+\\.def$") 	
sl@1
    26
#-------------------------------------------------------------------
sl@1
    27
sl@1
    28
#-------------------------------------------------------------------
sl@1
    29
#Add project source files
sl@1
    30
#-------------------------------------------------------------------
sl@1
    31
set (sourcepath ./)
sl@1
    32
add_source(econsnogui_uid.cpp)
sl@1
    33
sl@1
    34
set (sourcepath ./specific/)
sl@1
    35
add_source(econsnogui.cpp)
sl@1
    36
#Def
sl@1
    37
set (sourcepath ./bwins/)
sl@1
    38
add_source(econsnoguiU.def)
sl@1
    39
#-------------------------------------------------------------------
sl@1
    40
sl@1
    41
#-------------------------------------------------------------------
sl@1
    42
#Define our source and target
sl@1
    43
#-------------------------------------------------------------------
sl@1
    44
get_source(source)
sl@1
    45
add_library (econsnogui SHARED ${source})
sl@1
    46
target_link_libraries(econsnogui edll euser)
sl@1
    47
#Following is needed to be able to load our DLL dynamically
sl@1
    48
set_target_properties(econsnogui PROPERTIES LINK_FLAGS "/INCLUDE:__E32Dll")
sl@1
    49
#WIN32 libraries
sl@1
    50
#target_link_libraries(econsnogui kernel32 user32 winmm)
sl@1
    51
#-------------------------------------------------------------------
sl@1
    52
sl@1
    53
#-------------------------------------------------------------------
sl@1
    54
#Fix up include directories
sl@1
    55
#-------------------------------------------------------------------
sl@1
    56
system_include(/epoc32/include)
sl@1
    57
system_include(/epoc32/include/platform)
sl@1
    58
#-------------------------------------------------------------------
sl@1
    59
sl@1
    60
#-------------------------------------------------------------------
sl@1
    61
#Fix up compiler defines
sl@1
    62
#-------------------------------------------------------------------
sl@1
    63
#add_define(__DLL__)
sl@1
    64
#-------------------------------------------------------------------
sl@1
    65
sl@1
    66
sl@1
    67
####################
sl@1
    68
pop_target(econsnogui)
sl@1
    69
####################