Cross-platform GUI development in C.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

CMakeLists.txt 607 B

1234567891011121314151617181920212223
  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 (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  15. add_definitions(-DMACOS)
  16. add_executable(cerberus src/main.c)
  17. include_directories(/usr/include)
  18. link_directories()
  19. elseif(UNIX)
  20. add_definitions(-DUNIX)
  21. endif ()