常规升级
This commit is contained in:
-28
@@ -1,53 +1,35 @@
|
||||
get_filename_component(name ${CMAKE_CURRENT_LIST_DIR} NAME)
|
||||
|
||||
set(rely libarchive SQLiteCpp)
|
||||
rcl_load_dependency_environment(drogon ${rely})
|
||||
|
||||
|
||||
find_package(Drogon)
|
||||
find_package(SQLiteCpp CONFIG REQUIRED)
|
||||
|
||||
|
||||
set(Core Core_Static)
|
||||
|
||||
if (1)
|
||||
set(md "${CMAKE_CURRENT_LIST_DIR}/module")
|
||||
|
||||
|
||||
if (WIN32)
|
||||
set(cfg_dir ${CMAKE_CURRENT_LIST_DIR}/config)
|
||||
|
||||
else ()
|
||||
set(cfg_dir ${CMAKE_CURRENT_LIST_DIR}/config/x86_linux)
|
||||
endif ()
|
||||
|
||||
|
||||
_create("dll" dll_source)
|
||||
_create("exe" data_process)
|
||||
_attach_include_dir(dll_source "${md}")
|
||||
_attach_source_dir(dll_source "${md}/dll_source")
|
||||
_attach_include_dir(data_process "${md}")
|
||||
_attach_source_dir(data_process "${md}/dll_source")
|
||||
|
||||
|
||||
_depend(dll_source ${Core})
|
||||
_depend(data_process ${Core})
|
||||
_attach_post_build_file(dll_source ${cfg_dir}/data_progress_config.json
|
||||
# "${CMAKE_CURRENT_LIST_DIR}/data/BIN_Blank_Text/ADS-B_195_0205.txt"
|
||||
)
|
||||
|
||||
|
||||
_create("dll" mlat_source)
|
||||
_attach_include_dir(mlat_source "${md}")
|
||||
_attach_source_dir(mlat_source "${md}/mlat_source")
|
||||
_depend(mlat_source ${Core})
|
||||
|
||||
_create("exe" mlat_source_exe)
|
||||
_attach_include_dir(mlat_source_exe "${md}")
|
||||
_attach_source_dir(mlat_source_exe "${md}/mlat_source")
|
||||
_depend(mlat_source_exe ${Core})
|
||||
|
||||
|
||||
_create("exe" ecap_server)
|
||||
_depend(ecap_server SSR)
|
||||
_attach_include_dir(ecap_server "${md}")
|
||||
@@ -57,19 +39,14 @@ if (1)
|
||||
target_link_libraries(ecap_server PRIVATE SQLiteCpp)
|
||||
target_link_libraries(ecap_server PRIVATE ${ZLIB_LIBRARY})
|
||||
target_include_directories(ecap_server PRIVATE ${ZLIB_INCLUDE_DIR})
|
||||
|
||||
message("LibArchive_SUB_LIBRARIES {${LibArchive_SUB_LIBRARIES}}")
|
||||
target_link_libraries(ecap_server PRIVATE
|
||||
LibArchive::LibArchive
|
||||
${LibArchive_SUB_LIBRARIES}
|
||||
|
||||
)
|
||||
target_compile_definitions(ecap_server PRIVATE LIBARCHIVE_STATIC)
|
||||
|
||||
|
||||
_attach_source_file(ecap_server "${md}/Local_Server_main.cpp")
|
||||
_attach_post_build_file(ecap_server ${cfg_dir}/config.json)
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
# 添加进程间通信系统库
|
||||
target_compile_options(ecap_server PRIVATE -g -gstrict-dwarf -gdwarf-4 -fvar-tracking-assignments)
|
||||
@@ -100,7 +77,6 @@ if (1)
|
||||
${CMAKE_COMMAND} -E tar cf "${PACKAGE_ZIP}" --format=zip -- .
|
||||
COMMENT "Build frontend"
|
||||
USES_TERMINAL
|
||||
|
||||
VERBATIM
|
||||
)
|
||||
add_dependencies(ecap_server_package ecap_server)
|
||||
@@ -112,17 +88,13 @@ if (1)
|
||||
endif ()
|
||||
add_dependencies(ecap_server dll_source)
|
||||
if (WIN32)
|
||||
|
||||
endif ()
|
||||
_create("exe" test_drogon)
|
||||
_attach_include_dir(test_drogon "${md}")
|
||||
_attach_source_dir(test_drogon "${md}/test_drogon")
|
||||
target_link_libraries(test_drogon PRIVATE Drogon::Drogon)
|
||||
endif ()
|
||||
|
||||
rcl_unload_dependency_environment(drogon ${rely})
|
||||
|
||||
|
||||
#include("${CMAKE_SOURCE_DIR}/0_cmake_library/ninja_build_analyze/export.cmake")
|
||||
#
|
||||
#register_ninja_build_analyze_target(
|
||||
|
||||
Reference in New Issue
Block a user