eis/TestProject/ihd_test/CMakeLists.txt

42 lines
824 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.8)
project(ihdTest)
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")
aux_source_directory(./ DIR_ROOT)
set(LINK_OPTION
${LIBTHREAD}
# ${Boost_LIBRARIES}
${IHDB_LIB}
rt
stdc++
c
m
)
add_executable(
ihdTest
${DIR_ROOT})
target_link_libraries(ihdTest
${LINK_OPTION}
)
# message( ${Boost_INCLUDE_DIRS} )
target_include_directories(
ihdTest
PUBLIC ./
../
../../)
# ${Boost_INCLUDE_DIRS})