Fix CMake dependency chain
This commit is contained in:
parent
f0aa9a4f64
commit
ffb6e8e0b5
|
@ -1,9 +1,10 @@
|
|||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h @ONLY)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_library(Lexesis-backends
|
||||
backends/cpp.cpp
|
||||
add_library(templ
|
||||
template.cpp
|
||||
)
|
||||
add_dependencies(templ mstch::mstch)
|
||||
|
||||
add_library(lxs
|
||||
automata.cpp
|
||||
|
@ -15,15 +16,17 @@ add_library(lxs
|
|||
RegexParser.cpp
|
||||
reParser.cpp
|
||||
)
|
||||
add_dependencies(lxs templ)
|
||||
|
||||
add_library(Lexesis-backends
|
||||
backends/cpp.cpp
|
||||
)
|
||||
add_dependencies(Lexesis-backends lxs)
|
||||
|
||||
add_library(lxsinput
|
||||
inputparser.cpp
|
||||
)
|
||||
|
||||
add_library(templ
|
||||
template.cpp
|
||||
)
|
||||
|
||||
add_executable(Lexesis
|
||||
main.cpp
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue