no message
parent
832f5f5b60
commit
dd4937f957
|
@ -128,7 +128,7 @@
|
|||
<workItem from="1587473284944" duration="44000" />
|
||||
<workItem from="1587473352763" duration="6395000" />
|
||||
<workItem from="1587651371301" duration="5897000" />
|
||||
<workItem from="1587713244566" duration="8487000" />
|
||||
<workItem from="1587713244566" duration="9882000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
|
|
|
@ -12,38 +12,39 @@ target_link_libraries(generallib public
|
|||
)
|
||||
message("current path is" ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
message("using clang")
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
message("using gcc")
|
||||
# using GCC
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
|
||||
message("using asm")
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||
message("using msvc")
|
||||
endif()
|
||||
|
||||
IF (WIN32)
|
||||
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 -x
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/libd/libgenerallib.a
|
||||
COMMENT "package library ar -x ${CMAKE_CURRENT_SOURCE_DIR}/libd/libgenerallib.a"
|
||||
)
|
||||
add_custom_command (
|
||||
TARGET generallib POST_BUILD
|
||||
COMMAND ar rc libgeneral.a *.o *.obj
|
||||
COMMENT "package library ar rc *.o *.obj"
|
||||
)
|
||||
add_custom_command(
|
||||
TARGET generallib POST_BUILD
|
||||
COMMAND del *.o *.obj
|
||||
COMMENT "remove all step library"
|
||||
)
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "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 -x
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/libd/libgenerallib.a
|
||||
COMMENT "package library ar -x ${CMAKE_CURRENT_SOURCE_DIR}/libd/libgenerallib.a"
|
||||
)
|
||||
add_custom_command (
|
||||
TARGET generallib POST_BUILD
|
||||
COMMAND ar rc libgeneral.a *.o *.obj
|
||||
COMMENT "package library ar rc *.o *.obj"
|
||||
)
|
||||
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")
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||
message("using msvc")
|
||||
endif()
|
||||
|
||||
endif()
|
Loading…
Reference in New Issue