diff options
| author | songyanchao <[email protected]> | 2023-06-14 02:01:07 +0000 |
|---|---|---|
| committer | songyanchao <[email protected]> | 2023-06-16 06:25:31 +0000 |
| commit | cadc74f6e1389b5ebbaa2b6d0b15c370bd1f2a1d (patch) | |
| tree | 97c7f42f1103b8f94ae15f6be8c8859568cd2b13 /pag | |
| parent | b9c8cd5ae622be17a9c16294795a3e69cefb2238 (diff) | |
🐎 ci(DPISDN-9): 添加多平台rpm打包流程
添加多平台rpm打包流程
Diffstat (limited to 'pag')
| -rw-r--r-- | pag/CMakeLists.txt | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/pag/CMakeLists.txt b/pag/CMakeLists.txt index 46e1bc8..4b8e2cf 100644 --- a/pag/CMakeLists.txt +++ b/pag/CMakeLists.txt @@ -1,16 +1,16 @@ -find_package(DPDK REQUIRED)
-include_directories(${CMAKE_SOURCE_DIR}/include)
-include_directories(${CMAKE_SOURCE_DIR}/include/extern)
-include_directories(${CMAKE_SOURCE_DIR}/include/internal)
-include_directories(${DPDK_INCLUDE_DIR})
-
-add_definitions(${DPDK_C_PREDEFINED})
-add_library(pag SHARED libpag.c)
-target_link_libraries(pag MESA_prof_load_static marsio)
-target_link_libraries(pag rt pthread dl)
-set_target_properties(pag PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")
-target_include_directories(pag INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
-
-# Install
-install(TARGETS pag LIBRARY DESTINATION lib COMPONENT Program)
-install(FILES libpag.h DESTINATION include COMPONENT Program)
\ No newline at end of file +find_package(DPDK REQUIRED) +include_directories(${CMAKE_SOURCE_DIR}/include) +include_directories(${CMAKE_SOURCE_DIR}/include/extern) +include_directories(${CMAKE_SOURCE_DIR}/include/internal) +include_directories(${DPDK_INCLUDE_DIR}) + +add_definitions(${DPDK_C_PREDEFINED}) +add_library(pag SHARED libpag.c) +target_link_libraries(pag MESA_prof_load_static marsio) +target_link_libraries(pag rt pthread dl) +set_target_properties(pag PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map") +target_include_directories(pag INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}") + +# Install +install(TARGETS pag LIBRARY DESTINATION ${MR_INSTALL_LIBDIR} COMPONENT Program) +install(FILES libpag.h DESTINATION ${MR_INSTALL_INCLUDEDIR} COMPONENT Program) |
