Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMC-SOG
PN-Parser
Commits
d5a579ba
Commit
d5a579ba
authored
Jan 22, 2019
by
Jaime Arias
Browse files
Add CmakeLists.txt
parent
75c351a1
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
d5a579ba
...
@@ -41,3 +41,22 @@
...
@@ -41,3 +41,22 @@
*.tab.h
*.tab.h
# End of https://www.gitignore.io/api/c++
# End of https://www.gitignore.io/api/c++
# Created by https://www.gitignore.io/api/cmake
# Edit at https://www.gitignore.io/?templates=cmake
### CMake ###
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
build
# End of https://www.gitignore.io/api/cmake
CMakeLists.txt
0 → 100644
View file @
d5a579ba
# set minimum cmake version
cmake_minimum_required
(
VERSION 3.5 FATAL_ERROR
)
# project name and language
project
(
pn-parser LANGUAGES CXX
)
# add source folder
add_subdirectory
(
src
)
README.md
View file @
d5a579ba
# PN-Parser
# PN-Parser
# Build
```
mkdir build && cd build
cmake ..
make
```
# Dependencies
# Dependencies
-
`flex`
-
`flex`
...
...
src/CMakeLists.txt
0 → 100644
View file @
d5a579ba
# set minimum cmake version
cmake_minimum_required
(
VERSION 3.5 FATAL_ERROR
)
# project name and language
project
(
pn-parser-src LANGUAGES CXX
)
# dependencies
find_package
(
BISON REQUIRED
)
find_package
(
FLEX REQUIRED
)
# execute bison and flex
bison_target
(
rdp_parser RdPMonteur.y
${
CMAKE_CURRENT_BINARY_DIR
}
/parser.c
)
flex_target
(
rdp_scanner RdPMonteur.l
${
CMAKE_CURRENT_BINARY_DIR
}
/lexer.c
)
add_flex_bison_dependency
(
rdp_scanner rdp_parser
)
# generate a the library from sources
add_library
(
parser
STATIC
Net.h
Net.cpp
RdPMonteur.h
${
BISON_rdp_parser_OUTPUTS
}
${
FLEX_rdp_scanner_OUTPUTS
}
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment