Add multiple of the pointer target size
This commit is contained in:
@ -9,15 +9,15 @@ find_package(Boost CONFIG COMPONENTS process program_options REQUIRED)
|
||||
find_package(FLEX REQUIRED)
|
||||
find_package(BISON REQUIRED)
|
||||
|
||||
FLEX_TARGET(lexer source/lexer.ll ${CMAKE_CURRENT_BINARY_DIR}/lexer.cc)
|
||||
BISON_TARGET(parser source/parser.yy ${CMAKE_CURRENT_BINARY_DIR}/parser.cc)
|
||||
FLEX_TARGET(lexer boot/lexer.ll ${CMAKE_CURRENT_BINARY_DIR}/lexer.cc)
|
||||
BISON_TARGET(parser boot/parser.yy ${CMAKE_CURRENT_BINARY_DIR}/parser.cc)
|
||||
add_flex_bison_dependency(lexer parser)
|
||||
|
||||
add_library(elna-frontend
|
||||
source/ast.cc include/elna/source/ast.h
|
||||
source/types.cc include/elna/source/types.h
|
||||
source/driver.cc include/elna/source/driver.h
|
||||
source/result.cc include/elna/source/result.h
|
||||
boot/ast.cc include/elna/boot/ast.h
|
||||
include/elna/boot/symbol.h
|
||||
boot/driver.cc include/elna/boot/driver.h
|
||||
boot/result.cc include/elna/boot/result.h
|
||||
${BISON_parser_OUTPUTS} ${FLEX_lexer_OUTPUTS}
|
||||
)
|
||||
target_include_directories(elna-frontend PRIVATE ${CMAKE_CURRENT_BINARY_DIR} include)
|
||||
@ -25,7 +25,7 @@ target_compile_options(elna-frontend PRIVATE
|
||||
$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions -fno-rtti>
|
||||
)
|
||||
|
||||
add_executable(elna cli/main.cc)
|
||||
add_executable(elna tools/main.cc)
|
||||
target_link_libraries(elna PRIVATE elna-frontend)
|
||||
target_include_directories(elna PRIVATE ${CMAKE_CURRENT_BINARY_DIR} include ${Boost_INCLUDE_DIR})
|
||||
target_link_libraries(elna LINK_PUBLIC ${Boost_LIBRARIES})
|
||||
|
Reference in New Issue
Block a user