~ubuntu-branches/ubuntu/jaunty/cmake/jaunty-security

« back to all changes in this revision

Viewing changes to Tests/MathTest/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): A. Maitland Bottoms
  • Date: 2006-06-18 16:34:11 UTC
  • mfrom: (1.4.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060618163411-pi234s3v6jwlcmof
Tags: 2.4.2-1
* New upstream release (Closes: #338324)
* Put cmake .vim files into /usr/share/vim/addons/plugin/
  where they can be used. (Closes: #366663)
* Install cmake-mode.el so it can be used. (Closes: #366664)
* Ensure cmake FindKDE locates KDE libraries on Debian
  based distributions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PROJECT(MathTest)
 
2
 
 
3
 
 
4
# Expression test
 
5
 
 
6
SET(expressions
 
7
  "5 * ( 3 + 4)"
 
8
  "(1 | 2 | 4 | 8) & 16"
 
9
  "1 +(3*4) + 10 >> 2"
 
10
  "10000 / 20 / 4"
 
11
  "10000 / (20 / 4)"
 
12
  )
 
13
 
 
14
SET(FILE_EXPRESSIONS "")
 
15
FOREACH(expression
 
16
    ${expressions})
 
17
  MATH(EXPR expr "${expression}")
 
18
  SET(FILE_EXPRESSIONS "${FILE_EXPRESSIONS}TEST_EXPRESSION(${expression}, ${expr})\n")
 
19
ENDFOREACH(expression)
 
20
 
 
21
CONFIGURE_FILE(
 
22
  "${CMAKE_CURRENT_SOURCE_DIR}/MathTestTests.h.in"
 
23
  "${CMAKE_CURRENT_BINARY_DIR}/MathTestTests.h"
 
24
  @ONLY)
 
25
 
 
26
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}")
 
27
ADD_EXECUTABLE(MathTestExec MathTestExec.cxx)
 
28