Commit fb64e17eb72dbedbd1032ebb12df7b87bdcd3050

Authored by Benjamin Renard
1 parent 96e26914

Add script to run sonar + Fix CSlim lib detection

CMakeLists.txt
@@ -27,7 +27,7 @@ if (EXISTS "$ENV{AMDA_COTS_DIR}") @@ -27,7 +27,7 @@ if (EXISTS "$ENV{AMDA_COTS_DIR}")
27 set(GCC_ROOT "$ENV{AMDA_COTS_DIR}/tools/gcc/4.7.2/rtf") 27 set(GCC_ROOT "$ENV{AMDA_COTS_DIR}/tools/gcc/4.7.2/rtf")
28 set(BOOST_ROOT "$ENV{AMDA_COTS_DIR}/tools/gcc/4.7.2/boost") 28 set(BOOST_ROOT "$ENV{AMDA_COTS_DIR}/tools/gcc/4.7.2/boost")
29 set(SONAR_ROOT "$ENV{AMDA_COTS_DIR}/tools/sonar") 29 set(SONAR_ROOT "$ENV{AMDA_COTS_DIR}/tools/sonar")
30 - set(FITNESSE_ROOT "$ENV{AMDA_COTS_DIR}/tools/fitnesse") 30 + set(FITNESSE_ROOT "$ENV{AMDA_COTS_DIR}/tools/FitNesse")
31 else() 31 else()
32 message(FATAL_ERROR "AMDA_COTS_DIR NOT exists") 32 message(FATAL_ERROR "AMDA_COTS_DIR NOT exists")
33 endif() 33 endif()
cmake/modules/FindCSlim.cmake
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 7
8 find_path(CSLIMINCLUDE_DIR CSlim/Slim.h 8 find_path(CSLIMINCLUDE_DIR CSlim/Slim.h
9 HINTS 9 HINTS
10 - ${USERLOCAL_ROOT}/FitNesse/CSlim/include 10 + ${AMDA_TOOLS_DIR}/FitNesse/CSlim/include
11 NO_DEFAULT_PATH 11 NO_DEFAULT_PATH
12 ) 12 )
13 mark_as_advanced(CSLIMINCLUDE_DIR) 13 mark_as_advanced(CSLIMINCLUDE_DIR)
@@ -15,7 +15,7 @@ mark_as_advanced(CSLIMINCLUDE_DIR) @@ -15,7 +15,7 @@ mark_as_advanced(CSLIMINCLUDE_DIR)
15 find_library(CSLIMLIBRARY 15 find_library(CSLIMLIBRARY
16 NAMES CSlim 16 NAMES CSlim
17 HINTS 17 HINTS
18 - ${USERLOCAL_ROOT}/FitNesse/CSlim/lib 18 + ${AMDA_TOOLS_DIR}/FitNesse/CSlim/lib
19 NO_DEFAULT_PATH 19 NO_DEFAULT_PATH
20 ) 20 )
21 mark_as_advanced(CSLIMLIBRARY) 21 mark_as_advanced(CSLIMLIBRARY)
script/run-sonar.sh 0 → 100755
@@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
  1 +#! /bin/sh
  2 +
  3 +SCRIPT=$(readlink -f "$0")
  4 +SCRIPTDIR=$(dirname "$SCRIPT")
  5 +
  6 +. ${SCRIPTDIR}/amda-kernel-env
  7 +
  8 +sudo $SONAR_ROOT/sonar-3.2/bin/linux-x86-64/sonar.sh "$@"