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
RegexLexer.cpp
re.cpp
template.cpp
)
add_library(lxsinput
inputparser.cpp
)
add_library(templ
template.cpp
)
add_executable(Lexesis
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)
add_executable(Lexesis-test
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()
install(TARGETS Lexesis