holdingarea/syborggraphicswrapper/CMakeLists.txt
author Matt Plumtree <matt.plumtree@nokia.com>
Wed, 29 Sep 2010 09:49:13 +0100
branchbug235_bringup_0
changeset 49 3b4f7e9d873f
parent 36 563aa0c4cea3
permissions -rw-r--r--
Fix accidentally corrupted EPL URLs in CMakeLists.txt files.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
     1
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
     2
# All rights reserved.
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
     4
# under the terms of "Eclipse Public License v1.0"
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
49
3b4f7e9d873f Fix accidentally corrupted EPL URLs in CMakeLists.txt files.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 36
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
36
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
     7
#
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
     8
# Initial Contributors:
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    10
#
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    11
# Contributors:
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    12
#
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    13
# Description:
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    14
# CMake meta build file for the simulator guest-side API wrapper
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    15
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    16
set(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    17
set(INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/inc)
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    18
set(LIBS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../lib)
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    19
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    20
set(HOSTTHREADADAPTER_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../hostsupport/hostthreadadapter/inc)
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    21
set(KHRONOSAPIWRAPPER_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../serialization/Graphics/KhronosAPIWrapper/inc)
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    22
set(GUESTVIDEODRIVERINTERFACECONSTANTS_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../serialization/Graphics)
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    23
set(SERIALIZER_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../guestrendering/vghwserialiser/inc)
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    24
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    25
set(SRC_FILES
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    26
    ${INC_DIR}/syborg-graphicswrapper.h
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    27
    ${SRC_DIR}/syborg-graphicswrapper.cpp
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    28
)
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    29
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    30
include_directories(
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    31
  ${INC_DIR}
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    32
  ${COMMON_INC_DIR}
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    33
  ${HOSTTHREADADAPTER_INC_DIR}
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    34
  ${KHRONOSAPIWRAPPER_INC_DIR}
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    35
  ${SERIALIZER_INC_DIR}
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    36
  ${GUESTVIDEODRIVERINTERFACECONSTANTS_INC_DIR}
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    37
  )
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    38
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    39
link_directories(${LIBS_DIR} ${GLOBAL_LIB_DIR})
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    40
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    41
add_definitions(-DSYBORG_GRAPHICSWRAPPER_EXPORTS)
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    42
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    43
add_library(syborg-graphicswrapper SHARED ${SRC_FILES})
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    44
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    45
target_link_libraries(syborg-graphicswrapper KhronosAPIWrapper hostthreadadapter)
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    46
563aa0c4cea3 Moved syborggraphicswrapper from qemu package
Gareth Stockwell <gareth.stockwell@accenture.com>
parents:
diff changeset
    47