no message

master
caiyuzheng 2020-11-15 16:49:41 +08:00
parent 6dda938804
commit a31f56e7b8
1 changed files with 20 additions and 20 deletions

View File

@ -13,8 +13,8 @@ set(EVENT__HAVE_LIBEVENT 1)
message(STATUS "libevent include: " ${libevent_INCLUDE_DIR})
message(STATUS "libevent lib: ${libevent_LIBRARIES}")
message(STATUS "libevent lib Dirs: ${libevent_LIB_DIRS}")
message(STATUS "library files : $<TARGET_OBJECTS:General>" )
message(STATUS "library files : " )
message(STATUS $<TARGET_OBJECTS:General> )
SET(SRC_SDK sdk_main.c test/src/heapsort/main.c)#
add_library(generallib STATIC $<TARGET_OBJECTS:General> ${SRC_SDK})
message("CMAKE_BINARY_DIR is " ${CMAKE_BINARY_DIR})
@ -31,25 +31,25 @@ target_link_libraries(generallib public
message("current path is" ${CMAKE_CURRENT_SOURCE_DIR})
IF (WIN32)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
message("using clang")
#message("using clang")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
message("using gcc")
add_custom_command (
TARGET generallib POST_BUILD
COMMAND ar -x
${CMAKE_CURRENT_SOURCE_DIR}/libd/libevent.a
COMMENT "package library ar -x ${CMAKE_CURRENT_SOURCE_DIR}/libd/libevent.a "
)
add_custom_command (
TARGET generallib POST_BUILD
COMMAND ar rc libgeneral.a *.obj
COMMENT "package library ar rc *.o "
)
add_custom_command(
TARGET generallib POST_BUILD
COMMAND del *.o *.obj
COMMENT "remove all step library"
)
#message("using gcc")
#add_custom_command (
# TARGET generallib POST_BUILD
# COMMAND ar -x
# ${CMAKE_CURRENT_SOURCE_DIR}/libd/libevent.a
# COMMENT "package library ar -x ${CMAKE_CURRENT_SOURCE_DIR}/libd/libevent.a "
#)
#add_custom_command (
# TARGET generallib POST_BUILD
# COMMAND ar rc libgeneral.a *.obj
# COMMENT "package library ar rc *.o "
#)
#add_custom_command(
# TARGET generallib POST_BUILD
# COMMAND del *.o *.obj
# COMMENT "remove all step library"
#)
# using GCC
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
message("using asm")