restructure of verify module for better code organizations
This commit is contained in:
@@ -13,8 +13,10 @@ endif()
|
||||
# Create shared library - add CommonModuleAPI.cpp to the sources
|
||||
add_library(verify MODULE
|
||||
verify.cpp
|
||||
src/verify_commands.cpp
|
||||
${DPM_ROOT_DIR}/dpmdk/src/CommonModuleAPI.cpp # Add this line
|
||||
src/commands.cpp
|
||||
${DPM_ROOT_DIR}/dpmdk/src/CommonModuleAPI.cpp
|
||||
src/cli_parsers.cpp
|
||||
src/verification.cpp
|
||||
)
|
||||
|
||||
# Set output properties
|
||||
@@ -28,7 +30,7 @@ set_target_properties(
|
||||
target_include_directories(verify PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${DPM_ROOT_DIR}
|
||||
${DPM_ROOT_DIR}/dpmdk/include # Add this line
|
||||
${DPM_ROOT_DIR}/dpmdk/include
|
||||
)
|
||||
|
||||
# Link with required libraries
|
||||
@@ -37,8 +39,10 @@ target_link_libraries(verify dl)
|
||||
# Standalone version - used for debugging
|
||||
add_executable(verify_standalone
|
||||
verify.cpp
|
||||
src/verify_commands.cpp
|
||||
${DPM_ROOT_DIR}/dpmdk/src/CommonModuleAPI.cpp # Add this line
|
||||
src/commands.cpp
|
||||
${DPM_ROOT_DIR}/dpmdk/src/CommonModuleAPI.cpp
|
||||
src/cli_parsers.cpp
|
||||
src/verification.cpp
|
||||
)
|
||||
|
||||
# Define the BUILD_STANDALONE macro for the standalone build
|
||||
@@ -48,7 +52,7 @@ target_compile_definitions(verify_standalone PRIVATE BUILD_STANDALONE)
|
||||
target_include_directories(verify_standalone PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${DPM_ROOT_DIR}
|
||||
${DPM_ROOT_DIR}/dpmdk/include # Add this line
|
||||
${DPM_ROOT_DIR}/dpmdk/include
|
||||
)
|
||||
|
||||
# Link with required libraries for standalone too
|
||||
@@ -58,4 +62,4 @@ target_link_libraries(verify_standalone dl)
|
||||
set_target_properties(
|
||||
verify_standalone PROPERTIES
|
||||
OUTPUT_NAME "verify_debug"
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user