CMakeLists.txt
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
源码类别:

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(win_updater)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(Linking)
  6. include_directories(
  7.     ${LLCOMMON_INCLUDE_DIRS}
  8.     )
  9. set(win_updater_SOURCE_FILES updater.cpp)
  10. set(win_updater_HEADER_FILES CMakeLists.txt)
  11. set_source_files_properties(${win_updater_HEADER_FILES}
  12.                             PROPERTIES HEADER_FILE_ONLY TRUE)
  13. list(APPEND win_updater_SOURCE_FILES ${win_updater_HEADER_FILES})
  14. add_executable(windows-updater WIN32 ${win_updater_SOURCE_FILES})
  15. target_link_libraries(windows-updater
  16.     wininet
  17.     user32
  18.     gdi32
  19.     shell32
  20.     )
  21. set_target_properties(windows-updater
  22.     PROPERTIES
  23.     LINK_FLAGS "/NODEFAULTLIB:LIBCMT"
  24.     LINK_FLAGS_DEBUG "/NODEFAULTLIB:"LIBCMT;LIBCMTD;MSVCRT""
  25.     )
  26. # The windows-updater doesn't link against anything non-system, apparently
  27. #ll_deploy_sharedlibs_command(windows-updater)