61 lines
1.2 KiB
CMake
61 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 3.8)
|
|
project(eqpm VERSION 0.1)
|
|
|
|
set(CONFIG_FILE_PATH "config.json")
|
|
|
|
include(../cmake_include/public.cmake)
|
|
include(../cmake_include/baosight.cmake)
|
|
include(../cmake_include/mix_cc.cmake)
|
|
|
|
find_package(
|
|
Boost
|
|
COMPONENTS system filesystem serialization context regex container iostreams
|
|
stacktrace_addr2line unit_test_framework
|
|
REQUIRED)
|
|
|
|
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-omit-frame-pointer -Wno-deprecated-declarations")
|
|
set(CMAKE_BUILD_TYPE "Release")
|
|
aux_source_directory(./ DIR_ROOT)
|
|
|
|
set(LINK_OPTION
|
|
${ICE}
|
|
${IPLATURE}
|
|
${SQL}
|
|
${FREEZE}
|
|
${BASE_LIB}
|
|
${CODE_LIB}
|
|
${IDA}
|
|
${LEGACY_JSON}
|
|
${IHDB_LIB}
|
|
${MIX_CC_DEBUG}
|
|
${MIX_CC_UTILITY}
|
|
${MIX_CC_SQL}
|
|
rt
|
|
stdc++
|
|
c
|
|
m
|
|
)
|
|
|
|
add_executable(
|
|
eqpm
|
|
${DIR_ROOT}
|
|
)
|
|
|
|
target_link_libraries(eqpm
|
|
${LINK_OPTION}
|
|
${Boost_LIBRARIES}
|
|
${mix_cc}
|
|
nlohmann_json::nlohmann_json )
|
|
|
|
target_include_directories(
|
|
eqpm
|
|
PUBLIC ./
|
|
../
|
|
${my_lib_include}
|
|
${legacy_include}
|
|
${iplature_include}
|
|
${iXcom}Include)
|
|
|
|
set_target_properties(eqpm PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${bin_dir})
|
|
|