Blame view

ios/cocos2d/external/win32-specific/icon/CMakeLists.txt 520 Bytes
520389e3   xiaoyu   接入cocos源码,编译未通过,继续修改
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  cmake_minimum_required(VERSION 3.6)
  
  set(lib_name icon)
  set(target_name ext_${lib_name})
  
  project(${lib_name})
  
  include(../../cmake/CocosExternalConfig.cmake)
  
  add_library(${target_name} SHARED IMPORTED GLOBAL)
  
  set_target_properties(${target_name} PROPERTIES
    INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/include
  )
  
  set_target_properties(${target_name} PROPERTIES
    IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/prebuilt/iconv.dll"
    IMPORTED_IMPLIB "${CMAKE_CURRENT_SOURCE_DIR}/prebuilt/libiconv.lib"
  )