Moved templates to separate library

This commit is contained in:
Thomas Avé 2017-01-19 19:14:36 +01:00
parent c1befc5a76
commit 08b3d0b887
1 changed files with 6 additions and 3 deletions

View File

@ -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