Cross-platform GUI development in C.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

21 行
473 B

  1. cmake_minimum_required(VERSION 3.24)
  2. project(cerberus C)
  3. set(CMAKE_C_STANDARD 11)
  4. if (WIN32)
  5. # TODO set arch on target instead of generator
  6. if (CMAKE_SIZEOF_VOID_P EQUAL 8)
  7. set(PROJECT_ARCH x64)
  8. add_definitions(-DWIN64)
  9. else ()
  10. set(PROJECT_ARCH x86)
  11. add_definitions(-DWIN32)
  12. endif ()
  13. add_executable(cerberus WIN32 src/main.c)
  14. elseif(APPLE)
  15. add_definitions(-DMACOS)
  16. elseif(UNIX)
  17. add_definitions(-DUNIX)
  18. endif ()