diff options
| author | 刘学利 <[email protected]> | 2024-06-12 03:40:41 +0000 |
|---|---|---|
| committer | 刘学利 <[email protected]> | 2024-06-12 03:40:41 +0000 |
| commit | b7d504620edb2a24b899fe85caa84c28a3ad8564 (patch) | |
| tree | c75cd2978ba7ddf49f02f9e36e4b1a427ceb4946 /src/CMakeLists.txt | |
| parent | 478696610e58d1f38b3491c4f3f8a9f9518383b3 (diff) | |
DNS Decoder create version
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..a0102cd --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,15 @@ +add_definitions(-fPIC) + +include_directories(/opt/MESA/include/) +include_directories(${PROJECT_SOURCE_DIR}/deps/) + +aux_source_directory(${PROJECT_SOURCE_DIR}/deps/toml DEPS_SRC) + +set(DNS_DECODER_SRC ${DEPS_SRC} dns_decoder.cpp) + +add_library(dns_decoder SHARED ${DNS_DECODER_SRC}) +set_target_properties(dns_decoder PROPERTIES LINK_FLAGS "-Wl,--version-script=${PROJECT_SOURCE_DIR}/src/version.map") +target_link_libraries(dns_decoder fieldstat4) +set_target_properties(dns_decoder PROPERTIES PREFIX "") + +install(TARGETS dns_decoder LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/sapp/stellar_plugin/ COMPONENT LIBRARIES)
\ No newline at end of file |
