mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2025-04-01 23:32:59 +00:00
adjust cmakelist
This commit is contained in:
parent
40a92c7976
commit
0ba9574d2d
@ -19,7 +19,7 @@ endif()
|
||||
|
||||
|
||||
|
||||
add_definitions(-I ${CMAKE_SOURCE_DIR}/)
|
||||
add_definitions(-I ${CMAKE_SOURCE_DIR}/ -I ${CMAKE_CURRENT_BINARY_DIR}/ )
|
||||
|
||||
# from https://github.com/gsauthof/cmake-ragel
|
||||
macro(RAGEL_TARGET Name Input Output)
|
||||
@ -65,9 +65,9 @@ RAGEL_TARGET(value value.rl value.cpp COMPILE_FLAGS "-p -G2")
|
||||
|
||||
# need to copy all OUTPUT file to the build dir
|
||||
add_custom_command(
|
||||
OUTPUT phase2-parser.cpp phase2-parser.h
|
||||
OUTPUT phase2-parser.cpp phase2-parser.h phase2-parser.out
|
||||
COMMAND lemon++ -Tlempar.cxx phase2-parser.lemon
|
||||
COMMAND cp -p phase2-parser.cpp phase2-parser.h ${CMAKE_CURRENT_BINARY_DIR}/
|
||||
COMMAND mv -f phase2-parser.cpp phase2-parser.h phase2-parser.out ${CMAKE_CURRENT_BINARY_DIR}/
|
||||
MAIN_DEPENDENCY phase2-parser.lemon
|
||||
DEPENDS lempar.cxx
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
|
Loading…
x
Reference in New Issue
Block a user