Updated CMakeLists.txt and src/CMakeLists.txt. Removed rtti library dependency and moved Main.cpp to src/CMakeLists.txt from CMakeLists.txt
This commit is contained in:
parent
0d3abe0988
commit
8ee4302862
@ -1,21 +1,29 @@
|
|||||||
cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.25)
|
||||||
|
|
||||||
|
include(FetchContent)
|
||||||
|
|
||||||
project(JavaBytecodeParser)
|
project(JavaBytecodeParser)
|
||||||
|
|
||||||
include_directories(include)
|
include_directories(include)
|
||||||
|
include_directories(${CMAKE_BINARY_DIR})
|
||||||
|
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
set(CXX_STANDARD 23)
|
set(CXX_STANDARD 23)
|
||||||
|
|
||||||
|
set(BUILD_TESTS OFF)
|
||||||
|
set(BUILD_BENCHMARK OFF)
|
||||||
|
|
||||||
|
set(CAVM_RUNTIME_CHECK_SUPPORT ON)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
configure_file(include/Config.in ${CMAKE_BINARY_DIR}/Config.h)
|
||||||
|
|
||||||
set(CONSTANT_POOL_TAG_SRC ${CONSTANT_POOL_TAG_SRC})
|
set(CONSTANT_POOL_TAG_SRC ${CONSTANT_POOL_TAG_SRC})
|
||||||
|
|
||||||
message("src " ${CONSTANT_POOL_TAG_SRC})
|
message("src " ${CONSTANT_POOL_TAG_SRC})
|
||||||
|
|
||||||
add_executable(parser
|
add_executable(parser
|
||||||
src/Main.cpp
|
|
||||||
|
|
||||||
${CONSTANT_POOL_TAG_SRC}
|
${CONSTANT_POOL_TAG_SRC}
|
||||||
)
|
)
|
||||||
set(CMAKE_CXX_FLAGS "-std=c++${CXX_STANDARD} -O0 -g -Wpedantic")
|
set(CMAKE_CXX_FLAGS "-std=c++${CXX_STANDARD} -O0 -g -Wpedantic")
|
@ -2,7 +2,11 @@ add_subdirectory(ConstantPoolTags)
|
|||||||
add_subdirectory(FieldInfo)
|
add_subdirectory(FieldInfo)
|
||||||
add_subdirectory(Method)
|
add_subdirectory(Method)
|
||||||
|
|
||||||
|
set(CWD ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
|
||||||
set(CONSTANT_POOL_TAG_SRC
|
set(CONSTANT_POOL_TAG_SRC
|
||||||
|
${CWD}/Main.cpp
|
||||||
|
${CWD}/AttributeParser.cpp
|
||||||
${CONSTANT_POOL_TAG_SRC}
|
${CONSTANT_POOL_TAG_SRC}
|
||||||
|
|
||||||
PARENT_SCOPE
|
PARENT_SCOPE
|
||||||
|
Loading…
Reference in New Issue
Block a user