82 lines
2.0 KiB
CMake
82 lines
2.0 KiB
CMake
|
|
cmake_minimum_required(VERSION 3.8)
|
||
|
|
project(ProxyTest VERSION 0.1)
|
||
|
|
|
||
|
|
set(CONFIG_FILE_PATH "config.json")
|
||
|
|
|
||
|
|
include(../../cmake_include/public.cmake)
|
||
|
|
include(../../cmake_include/baosight.cmake)
|
||
|
|
|
||
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-omit-frame-pointer -Wno-deprecated-declarations")
|
||
|
|
aux_source_directory(./ DIR_ROOT)
|
||
|
|
|
||
|
|
|
||
|
|
set(LINK_OPTION
|
||
|
|
${ICE}
|
||
|
|
${IPLATURE}
|
||
|
|
${SQL}
|
||
|
|
${FREEZE}
|
||
|
|
${BASE_LIB}
|
||
|
|
${CODE_LIB}
|
||
|
|
${IDA}
|
||
|
|
${LEGACY_JSON}
|
||
|
|
${MEMCACHE_LIB}
|
||
|
|
${IHDB_LIB}
|
||
|
|
rt
|
||
|
|
stdc++
|
||
|
|
c
|
||
|
|
m
|
||
|
|
)
|
||
|
|
|
||
|
|
add_executable(
|
||
|
|
ProxyTest
|
||
|
|
${DIR_ROOT}
|
||
|
|
)
|
||
|
|
|
||
|
|
target_link_libraries(ProxyTest
|
||
|
|
${LINK_OPTION}
|
||
|
|
Eigen3::Eigen )
|
||
|
|
|
||
|
|
target_include_directories(
|
||
|
|
ProxyTest
|
||
|
|
PUBLIC ./
|
||
|
|
../
|
||
|
|
../../
|
||
|
|
${my_lib_include}
|
||
|
|
${legacy_include}
|
||
|
|
${iplature_include}
|
||
|
|
${ihdb_include}
|
||
|
|
${memcache_include}
|
||
|
|
${iXcom}Include)
|
||
|
|
|
||
|
|
message("my_lib_include:${my_lib_include}")
|
||
|
|
message("legacy_include:${legacy_include}")
|
||
|
|
message("iplature_include:${iplature_include}")
|
||
|
|
message("ihdb_include:${ihdb_include}")
|
||
|
|
message("memcache_include:${memcache_include}")
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
set_target_properties(ProxyTest PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${bin_dir})
|
||
|
|
|
||
|
|
# ###################### add test ########################
|
||
|
|
# 1. loss_compress_test
|
||
|
|
#
|
||
|
|
# ##############################################################################
|
||
|
|
# include(../cmake_include/unit_test.cmake)
|
||
|
|
|
||
|
|
# add_executable(loss_compress_test ${DISTRIBUTION} test/loss_compress_test.cc)
|
||
|
|
# target_link_libraries(loss_compress_test ${LINK_OPTION}
|
||
|
|
# Boost::unit_test_framework)
|
||
|
|
# target_include_directories(
|
||
|
|
# loss_compress_test PUBLIC ./ ../ ../../inc ../../inc/dbinc
|
||
|
|
# ${iPlature_include})
|
||
|
|
|
||
|
|
# set_target_properties(loss_compress_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY
|
||
|
|
# ${UNIT_TEST_BIN_OUTPUT_DIR})
|
||
|
|
|
||
|
|
# enable_testing()
|
||
|
|
# add_test(
|
||
|
|
# NAME loss_compress_test
|
||
|
|
# WORKING_DIRECTORY ${UNIT_TEST_BIN_OUTPUT_DIR}
|
||
|
|
# COMMAND loss_compress_test)
|