elna/CMakeLists.txt

31 lines
1001 B
CMake
Raw Normal View History

2024-02-18 11:26:57 +01:00
cmake_minimum_required(VERSION 3.21)
project(Elna)
2024-02-22 21:29:25 +01:00
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
2024-02-18 11:26:57 +01:00
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
2024-02-25 15:16:19 +01:00
set(CMAKE_CXX_STANDARD 17)
2024-02-22 21:29:25 +01:00
2024-03-03 13:11:39 +01:00
find_package(Boost COMPONENTS program_options REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
2024-02-22 21:29:25 +01:00
add_executable(tester tests/runner.cpp include/elna/tester.hpp)
target_include_directories(tester PRIVATE include)
add_executable(elnsh shell/main.cpp
shell/interactive.cpp include/elna/interactive.hpp
shell/history.cpp include/elna/history.hpp
shell/state.cpp include/elna/state.hpp
2024-02-25 15:16:19 +01:00
)
2024-02-22 21:29:25 +01:00
target_include_directories(elnsh PRIVATE include)
2024-02-25 15:16:19 +01:00
2024-03-03 13:11:39 +01:00
add_executable(elna source/main.cpp
2024-02-25 15:16:19 +01:00
source/lexer.cpp include/elna/lexer.hpp
2024-02-28 16:18:39 +01:00
source/result.cpp include/elna/result.hpp
source/riscv.cpp include/elna/riscv.hpp
2024-03-01 10:13:55 +01:00
source/parser.cpp include/elna/parser.hpp
2024-02-28 16:18:39 +01:00
source/ir.cpp include/elna/ir.hpp
2024-03-01 10:13:55 +01:00
source/cl.cpp include/elna/cl.hpp
2024-02-22 21:29:25 +01:00
)
2024-02-25 15:16:19 +01:00
target_include_directories(elna PRIVATE include)
2024-03-03 13:11:39 +01:00
target_link_libraries(elna LINK_PUBLIC ${Boost_LIBRARIES})