CaVM/CMakeLists.txt

28 lines
578 B
CMake
Raw Normal View History

2024-08-13 12:12:22 +00:00
cmake_minimum_required(VERSION 3.25)
include(FetchContent)
2024-08-13 12:12:22 +00:00
project(JavaBytecodeParser)
include_directories(include)
include_directories(${CMAKE_BINARY_DIR})
2024-08-13 12:12:22 +00:00
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CXX_STANDARD 23)
set(CAVM_RUNTIME_CHECK_SUPPORT ON)
2024-08-13 12:12:22 +00:00
add_subdirectory(src)
configure_file(include/Config.in ${CMAKE_BINARY_DIR}/Config.h)
2024-08-13 12:12:22 +00:00
set(CONSTANT_POOL_TAG_SRC ${CONSTANT_POOL_TAG_SRC})
message("src " ${CONSTANT_POOL_TAG_SRC})
add_executable(parser
${CONSTANT_POOL_TAG_SRC}
)
2024-08-25 03:34:33 +00:00
if (UNIX)
set(CMAKE_CXX_FLAGS "-std=c++${CXX_STANDARD} -O0 -g -Wpedantic")
endif()