2007-01-07 17:19:45 +00:00
|
|
|
################################################################
|
|
|
|
# Name: CMakeLists.txt
|
|
|
|
# Purpose: Input file for CMake for the Scyther tool
|
|
|
|
# Author: Cas Cremers
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Scyther project
|
|
|
|
project (Scyther)
|
|
|
|
# I need 2.4 for flex/etc although it does not run yet
|
2007-01-08 11:20:19 +00:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
|
2007-01-07 17:19:45 +00:00
|
|
|
|
|
|
|
# List all the source files
|
|
|
|
set (Scyther_sources
|
|
|
|
arachne.c binding.c claim.c color.c compiler.c cost.c
|
|
|
|
debug.c depend.c dotout.c error.c heuristic.c hidelevel.c
|
|
|
|
intruderknowledge.c knowledge.c label.c list.c main.c mgu.c
|
|
|
|
prune_bounds.c prune_theorems.c role.c
|
|
|
|
specialterm.c states.c switches.c symbol.c system.c tac.c
|
2007-05-18 13:06:29 +01:00
|
|
|
tempfile.c
|
2007-01-07 17:19:45 +00:00
|
|
|
termlist.c termmap.c term.c timer.c type.c warshall.c xmlout.c
|
|
|
|
parser.c scanner.c
|
|
|
|
)
|
|
|
|
|
|
|
|
# If we are in a debug mode we want to be strict
|
|
|
|
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -DDEBUG")
|
|
|
|
|
|
|
|
# Determine version number
|
|
|
|
include (SVNVersion.cmake)
|
|
|
|
|
|
|
|
# Make scanner and parser
|
|
|
|
include (ScannerParser.cmake)
|
|
|
|
|
2007-01-08 13:24:37 +00:00
|
|
|
# Set build target settings according to platform
|
|
|
|
include (BuildPlatform.cmake)
|
2007-01-07 17:19:45 +00:00
|
|
|
|