directory restructure and documentation cleanup
This commit is contained in:
@@ -25,8 +25,13 @@ target_link_libraries(dpm dl)
|
||||
# Export symbols for dynamic loading
|
||||
target_link_options(dpm PRIVATE -rdynamic)
|
||||
|
||||
# Add the info module
|
||||
add_library(info MODULE modules/info.cpp)
|
||||
# Add the info module with specific source files
|
||||
add_library(info MODULE
|
||||
modules/info/info.cpp
|
||||
modules/info/src/infoFuncs.cpp
|
||||
# DO NOT include dpmdk sources which have different include requirements
|
||||
)
|
||||
|
||||
set_target_properties(
|
||||
info PROPERTIES
|
||||
PREFIX ""
|
||||
@@ -34,6 +39,13 @@ set_target_properties(
|
||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/modules"
|
||||
)
|
||||
|
||||
# Add include directories for the info module
|
||||
target_include_directories(info PRIVATE
|
||||
include
|
||||
modules/info
|
||||
modules/info/include # Add this to find infoFuncs.hpp
|
||||
)
|
||||
|
||||
# Installation rules
|
||||
install(TARGETS dpm DESTINATION bin)
|
||||
install(DIRECTORY DESTINATION /etc/dpm/conf.d)
|
||||
|
||||
Reference in New Issue
Block a user