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
|
|
|
|
2019-01-04 16:19:14 +00:00
|
|
|
# Try clang
|
|
|
|
#set (CMAKE_C_COMPILER "clang")
|
2010-11-10 22:09:37 +00:00
|
|
|
|
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")
|
|
|
|
|
2015-11-27 21:07:30 +00:00
|
|
|
# c11 standard has different inline semantics, yields warning.
|
|
|
|
# Since c11 is the default for gcc 5, we explicitly include the switch.
|
|
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu89")
|
|
|
|
|
2007-01-07 17:19:45 +00:00
|
|
|
# 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
|
|
|
|