Update CMakeLists.txt

This commit is contained in:
夏楚 2017-12-01 18:26:48 +08:00
parent 473b9356a6
commit c8c1eee25d

View File

@ -114,11 +114,9 @@ if(NOT IOS AND NOT ANDROID)
endif() endif()
# #
if(NOT WIN32)
add_library(${CMAKE_PROJECT_NAME}_static STATIC ${SRC_LIST}) add_library(${CMAKE_PROJECT_NAME}_static STATIC ${SRC_LIST})
set_target_properties(${CMAKE_PROJECT_NAME}_static PROPERTIES OUTPUT_NAME "${CMAKE_PROJECT_NAME}") set_target_properties(${CMAKE_PROJECT_NAME}_static PROPERTIES OUTPUT_NAME "${CMAKE_PROJECT_NAME}")
install(TARGETS ${CMAKE_PROJECT_NAME}_static ARCHIVE DESTINATION ${INSTALL_PATH_LIB}) install(TARGETS ${CMAKE_PROJECT_NAME}_static ARCHIVE DESTINATION ${INSTALL_PATH_LIB})
endif()
# #
if(NOT IOS) if(NOT IOS)