Cross-platform GUI development in C.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

26 satır
711 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.h src/main.c)
  14. elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  15. # does not work, use Xcode to build
  16. # TODO use makefile instead of cmake?
  17. add_definitions(-DMACOS)
  18. add_executable(cerberus src/main.h src/main.m)
  19. include_directories(/usr/include)
  20. link_directories()
  21. elseif(UNIX)
  22. add_definitions(-DUNIX)
  23. endif ()