Add config.h.in which produces the config.h on CMake configure.

This commit is contained in:
Chunting Gu
2018-11-20 17:04:47 +08:00
parent 964d21748a
commit 8c53b24bb7
6 changed files with 78 additions and 67 deletions
+8 -10
View File
@@ -1,14 +1,12 @@
# Unit test
if(WEBCC_BUILD_UNITTEST)
set(UT_SRCS
rest_service_manager_test.cc
)
set(UT_SRCS
rest_service_manager_test.cc
)
set(UT_TARGET_NAME webcc_unittest)
set(UT_TARGET_NAME webcc_unittest)
add_executable(${UT_TARGET_NAME} ${UT_SRCS})
target_link_libraries(${UT_TARGET_NAME} webcc pugixml gtest ${Boost_LIBRARIES})
target_link_libraries(${UT_TARGET_NAME} "${CMAKE_THREAD_LIBS_INIT}")
add_executable(${UT_TARGET_NAME} ${UT_SRCS})
target_link_libraries(${UT_TARGET_NAME} webcc pugixml gtest ${Boost_LIBRARIES})
target_link_libraries(${UT_TARGET_NAME} "${CMAKE_THREAD_LIBS_INIT}")
add_test(${UT_TARGET_NAME} ${UT_TARGET_NAME})
endif()
add_test(${UT_TARGET_NAME} ${UT_TARGET_NAME})