Blang/tools/lex/CMakeLists.txt

32 lines
451 B
CMake

project(Lex)
set(Lex_VERSION 1.0.0)
configure_file(include/config.h.in include/config.h @ONLY)
include_directories(include)
file(
GLOB_RECURSE
sources_files
src/*
)
add_executable(Lex ${sources_files})
target_link_libraries(
Lex
blangutils
jsoncpp_lib
)
function(build_lexer_sources source_file)
add_custom_command (
OUTPUT source_file
COMMAND Lex source_file
DEPENDS Lex
)
endfunction()