2024-08-13 12:12:22 +00:00
|
|
|
cmake_minimum_required(VERSION 3.25)
|
|
|
|
|
2024-08-19 23:59:51 +00:00
|
|
|
include(FetchContent)
|
|
|
|
|
2024-08-13 12:12:22 +00:00
|
|
|
project(JavaBytecodeParser)
|
|
|
|
|
|
|
|
include_directories(include)
|
2024-08-19 23:59:51 +00:00
|
|
|
include_directories(${CMAKE_BINARY_DIR})
|
2024-08-13 12:12:22 +00:00
|
|
|
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
set(CXX_STANDARD 23)
|
|
|
|
|
2024-08-19 23:59:51 +00:00
|
|
|
set(CAVM_RUNTIME_CHECK_SUPPORT ON)
|
|
|
|
|
2024-08-13 12:12:22 +00:00
|
|
|
add_subdirectory(src)
|
|
|
|
|
2024-08-19 23:59:51 +00:00
|
|
|
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()
|