examples.cmake 1.55 KB
Newer Older
1
2
3
#
# Copyright (C) 2014 Jens Korinth, TU Darmstadt
#
4
# This file is part of Tapasco (TPC).
5
#
6
# Tapasco is free software: you can redistribute it and/or modify
7
8
9
10
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
11
# Tapasco is distributed in the hope that it will be useful,
12
13
14
15
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
17
# along with Tapasco.  If not, see <http://www.gnu.org/licenses/>.
18
19
20
#
set(ARCH "${CMAKE_SYSTEM_PROCESSOR}")

21
22
23
24
if ("$ENV{TAPASCO_HOME}" STREQUAL "")
  message(FATAL_ERROR "Please set env var TAPASCO_HOME to root directory of Tapasco.")
endif ("$ENV{TAPASCO_HOME}" STREQUAL "")
set(TAPASCO_HOME "$ENV{TAPASCO_HOME}")
25
26
27
28
29
30
31
32

if (${REQUIRES_FASTFLOW})
if ("$ENV{FF_ROOT}" STREQUAL "")
  message(FATAL_ERROR "Please set env var FF_ROOT to root directory of FastFlow.")
endif ("$ENV{FF_ROOT}" STREQUAL "")
set(FF_ROOT "$ENV{FF_ROOT}")
endif (${REQUIRES_FASTFLOW})

33
# link_directories(${TAPASCO_HOME}/arch/lib/${ARCH} ${TAPASCO_HOME}/arch/lib/${ARCH}/static ${TAPASCO_HOME}/platform/lib/${ARCH} ${TAPASCO_HOME}/platform/lib/${ARCH}/static)
Jaco Hofmann's avatar
Jaco Hofmann committed
34
link_directories(${TAPASCO_HOME}/arch/lib/${ARCH}  ${TAPASCO_HOME}/platform/lib/${ARCH})
35

36
include_directories(${TAPASCO_HOME}/arch/common/include ${TAPASCO_HOME}/platform/common/include ${FF_ROOT})
37