Базовая часть шаблона AsiPlugin. Содержимое файлов в ней не меняется при создании проекта из шаблона.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. cmake_minimum_required(VERSION 2.8)
  2. project(AsiBase)
  3. ADD_DEFINITIONS(-DWIN32=1)
  4. find_program(CCACHE_FOUND ccache)
  5. if(CCACHE_FOUND)
  6. set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
  7. set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
  8. endif(CCACHE_FOUND)
  9. include_directories(${CMAKE_CURRENT_SOURCE_DIR}/d3d9/imgui)
  10. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_NAME}_LIST)
  11. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/CGame ${PROJECT_NAME}_LIST)
  12. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/CGame/Transport ${PROJECT_NAME}_LIST)
  13. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/CGame/Pools ${PROJECT_NAME}_LIST)
  14. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/CGame/SAMP ${PROJECT_NAME}_LIST)
  15. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/RakNet ${PROJECT_NAME}_LIST)
  16. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/d3d9 ${PROJECT_NAME}_LIST)
  17. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/d3d9/imgui ${PROJECT_NAME}_LIST)
  18. list(APPEND ${PROJECT_NAME}_LIST "${CMAKE_CURRENT_SOURCE_DIR}/d3d9/imgui/examples/imgui_impl_win32.cpp")
  19. list(APPEND ${PROJECT_NAME}_LIST "${CMAKE_CURRENT_SOURCE_DIR}/d3d9/imgui/examples/imgui_impl_dx9.cpp")
  20. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/d3d9/imgui_tabs ${PROJECT_NAME}_LIST)
  21. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/d3d9/ImWrapper ${PROJECT_NAME}_LIST)
  22. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/d3d9/ImWrapper/components ${PROJECT_NAME}_LIST)
  23. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/d3d9/ImWrapper/items ${PROJECT_NAME}_LIST)
  24. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/llmo ${PROJECT_NAME}_LIST)
  25. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/sys ${PROJECT_NAME}_LIST)
  26. add_definitions("-ffunction-sections -fexec-charset=CP1251 -pipe -w")
  27. set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--gc-sections -ffast-math")
  28. add_library(${PROJECT_NAME} STATIC ${${PROJECT_NAME}_LIST})
  29. set_target_properties(${PROJECT_NAME} PROPERTIES
  30. CXX_STANDARD 17
  31. CXX_STANDARD_REQUIRED YES
  32. CXX_EXTENSIONS NO
  33. )
  34. target_link_libraries(${PROJECT_NAME} d3d9 d3dx9 dxerr9)