A 2D tile-based sandbox game.
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 1.1KB

1234567891011121314151617181920212223242526272829
  1. add_library(imgui SHARED
  2. ${PROJECT_SOURCE_DIR}/third_party/imgui/imgui_demo.cpp
  3. ${PROJECT_SOURCE_DIR}/third_party/imgui/imgui_draw.cpp
  4. ${PROJECT_SOURCE_DIR}/third_party/imgui/imgui_widgets.cpp
  5. ${PROJECT_SOURCE_DIR}/third_party/imgui/imgui.cpp
  6. ${PROJECT_SOURCE_DIR}/third_party/imgui_sdl/imgui_sdl.cpp
  7. ${PROJECT_SOURCE_DIR}/third_party/imgui-plot/src/imgui_plot.cpp)
  8. target_include_directories(imgui PUBLIC
  9. ${PROJECT_SOURCE_DIR}/third_party/imgui
  10. ${PROJECT_SOURCE_DIR}/third_party/imgui-plot/include
  11. ${SDL2_INCLUDE_DIRS})
  12. set_target_properties(imgui PROPERTIES CXX_CLANG_TIDY "")
  13. install(TARGETS imgui DESTINATION swan/third_party)
  14. add_library(fmt SHARED
  15. ${PROJECT_SOURCE_DIR}/third_party/fmt/src/format.cc
  16. ${PROJECT_SOURCE_DIR}/third_party/fmt/src/os.cc)
  17. target_include_directories(fmt PUBLIC
  18. ${PROJECT_SOURCE_DIR}/third_party/fmt/include)
  19. install(TARGETS fmt DESTINATION swan/third_party)
  20. add_library(cpptoml INTERFACE)
  21. target_include_directories(cpptoml INTERFACE
  22. ${PROJECT_SOURCE_DIR}/third_party/cpptoml/include)
  23. add_library(msgpack INTERFACE)
  24. target_include_directories(msgpack INTERFACE
  25. ${PROJECT_SOURCE_DIR}/third_party/msgpack-c/include)