| 1 |
## -*- mode: CMake -*- |
| 2 |
## |
| 3 |
## Copyright (c) 2016 The University of Utah |
| 4 |
## All rights reserved. |
| 5 |
## |
| 6 |
## This file is distributed under the University of Illinois Open Source |
| 7 |
## License. See the file COPYING for details. |
| 8 |
|
| 9 |
############################################################################### |
| 10 |
|
| 11 |
cmake_minimum_required(VERSION 2.8.12) |
| 12 |
|
| 13 |
# find_package(FLEX) is done by the topmost "CMakeLists.txt" file. |
| 14 |
|
| 15 |
############################################################################### |
| 16 |
|
| 17 |
project(topformflat) |
| 18 |
|
| 19 |
include_directories(${PROJECT_BINARY_DIR}) |
| 20 |
include_directories(${PROJECT_SOURCE_DIR}) |
| 21 |
include_directories(${CMAKE_BINARY_DIR}) |
| 22 |
|
| 23 |
FLEX_TARGET(topformflat_scanner |
| 24 |
topformflat.l |
| 25 |
${PROJECT_BINARY_DIR}/topformflat.c |
| 26 |
) |
| 27 |
|
| 28 |
add_executable(topformflat |
| 29 |
${FLEX_topformflat_scanner_OUTPUTS} |
| 30 |
) |
| 31 |
|
| 32 |
############################################################################### |
| 33 |
|
| 34 |
install(TARGETS topformflat |
| 35 |
RUNTIME DESTINATION "libexec" |
| 36 |
) |
| 37 |
|
| 38 |
############################################################################### |
| 39 |
|
| 40 |
## End of file. |