holdingarea/syborggraphicswrapper/CMakeLists.txt
branchbug235_bringup_0
changeset 36 563aa0c4cea3
child 49 3b4f7e9d873f
equal deleted inserted replaced
35:44e8593dd747 36:563aa0c4cea3
       
     1 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 # All rights reserved.
       
     3 # This component and the accompanying materials are made available
       
     4 # under the terms of "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".
       
     7 #
       
     8 # Initial Contributors:
       
     9 # Nokia Corporation - initial contribution.
       
    10 #
       
    11 # Contributors:
       
    12 #
       
    13 # Description:
       
    14 # CMake meta build file for the simulator guest-side API wrapper
       
    15 
       
    16 set(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
       
    17 set(INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/inc)
       
    18 set(LIBS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../lib)
       
    19 
       
    20 set(HOSTTHREADADAPTER_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../hostsupport/hostthreadadapter/inc)
       
    21 set(KHRONOSAPIWRAPPER_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../serialization/Graphics/KhronosAPIWrapper/inc)
       
    22 set(GUESTVIDEODRIVERINTERFACECONSTANTS_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../serialization/Graphics)
       
    23 set(SERIALIZER_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../guestrendering/vghwserialiser/inc)
       
    24 
       
    25 set(SRC_FILES
       
    26     ${INC_DIR}/syborg-graphicswrapper.h
       
    27     ${SRC_DIR}/syborg-graphicswrapper.cpp
       
    28 )
       
    29 
       
    30 include_directories(
       
    31   ${INC_DIR}
       
    32   ${COMMON_INC_DIR}
       
    33   ${HOSTTHREADADAPTER_INC_DIR}
       
    34   ${KHRONOSAPIWRAPPER_INC_DIR}
       
    35   ${SERIALIZER_INC_DIR}
       
    36   ${GUESTVIDEODRIVERINTERFACECONSTANTS_INC_DIR}
       
    37   )
       
    38 
       
    39 link_directories(${LIBS_DIR} ${GLOBAL_LIB_DIR})
       
    40 
       
    41 add_definitions(-DSYBORG_GRAPHICSWRAPPER_EXPORTS)
       
    42 
       
    43 add_library(syborg-graphicswrapper SHARED ${SRC_FILES})
       
    44 
       
    45 target_link_libraries(syborg-graphicswrapper KhronosAPIWrapper hostthreadadapter)
       
    46 
       
    47