Moved templates to separate library
This commit is contained in:
parent
c1befc5a76
commit
08b3d0b887
|
@ -12,23 +12,26 @@ add_library(lxs
|
||||||
driver.cpp
|
driver.cpp
|
||||||
RegexLexer.cpp
|
RegexLexer.cpp
|
||||||
re.cpp
|
re.cpp
|
||||||
template.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(lxsinput
|
add_library(lxsinput
|
||||||
inputparser.cpp
|
inputparser.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_library(templ
|
||||||
|
template.cpp
|
||||||
|
)
|
||||||
|
|
||||||
add_executable(Lexesis
|
add_executable(Lexesis
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
target_link_libraries(Lexesis Lexesis-backends lxs lxsinput mstch::mstch)
|
target_link_libraries(Lexesis Lexesis-backends lxs templ lxsinput mstch::mstch)
|
||||||
|
|
||||||
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||||
add_executable(Lexesis-test
|
add_executable(Lexesis-test
|
||||||
test.cpp
|
test.cpp
|
||||||
)
|
)
|
||||||
target_link_libraries(Lexesis-test Lexesis-backends lxs lxsinput mstch::mstch)
|
target_link_libraries(Lexesis-test Lexesis-backends lxs templ lxsinput mstch::mstch)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS Lexesis
|
install(TARGETS Lexesis
|
||||||
|
|
Loading…
Reference in New Issue