-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
109 lines (72 loc) · 2.04 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
message(FATAL_ERROR "This repository has moved to GitLab\n\nGet KXOVER from\n\thttps://gitlab.com/arpa2/kxover/\n")
#
# CMakeLists.txt for KXOVER
#
cmake_minimum_required (VERSION 3.2 FATAL_ERROR)
project ("KXOVER")
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
include (MacroEnsureOutOfSourceBuild)
include (MacroAddUninstallTarget)
include (MacroGitVersionInfo)
include (MacroCreateConfigFiles)
macro_ensure_out_of_source_build("Do not build KXOVER in the source directory.")
set (CMAKE_MACOSX_RPATH 0)
option (DEBUG
"Produce verbose about Petri net processing"
OFF)
#
# Dependencies
#
# find_package (Quick-DER REQUIRED)
#TODO:DOESNT:INSTALL# find_package (Perpetuum REQUIRED)
#TODO:DOESNT:INSTALL# find_package (erlang-unbound REQUIRED)
find_program (GNUMAKE
NAMES gmake make)
#
# OPTIONS / BUILD SETTINGS
#
set (ERL_PATH_UNBOUND ""
CACHE PATH "Override path for the erlang-unbound project root (holding its ebin directory)")
set (ERL_PATH_PERPETUUM ""
CACHE PATH "Override path for the Perpetuum project root (holding its ebin directory)")
set (PERPETUUM_COMPILER_PATH "perpetuum"
CACHE PATH "Command or path for the Perpetuum Compiler")
#
# Version Information
#
get_version_from_git (KXOVER 0.0.0)
#
# Building
#
add_subdirectory (asn1)
add_subdirectory (process)
#KLUDGE#
# add_compile_options (-Dconst=)
# include_directories (include ${CMAKE_BINARY_DIR})
add_custom_command (
OUTPUT kxover_client.erl
COMMAND perpetuum
${CMAKE_SOURCE_DIR}/process/petrinet/kxover_client.pnml
${CMAKE_BINARY_DIR})
add_custom_command (
OUTPUT kxover_server.erl
COMMAND perpetuum
${CMAKE_SOURCE_DIR}/process/petrinet/kxover_server.pnml
${CMAKE_BINARY_DIR})
# add_executable (kxover_client
# kxover_client.c kxover_client.h kxover_server.h
# process/client.c process/common.c)
# add_executable (kxover_server
# kxover_server.c kxover_client.h kxover_server.h
# process/server.c process/common.c)
#
# TESTS
#
enable_testing ()
#
# INSTALLATION
#
add_uninstall_target ()
#
# PACKAGING
#