Game-as-a-Service / Machi-Koro-Cpp

5 stars 1 forks source link

[Fix] Fix the linking problems by modify the CMakeLists.txt #37

Closed HuaYuan-Tseng closed 7 months ago

HuaYuan-Tseng commented 8 months ago
  1. 將 Model_library 與 Controller2Usecase_library 從 Static Library 改成 Shared Library。
  2. 將 Model_library 與 Controller2Usecase_library 的 Headers 從 Public 改成 Private。
  3. 將 Controller2usecase_library 的 include directoires 從 Public 改成 Private。
  4. 將 Controller2usecase_library 所 link 的 Model 從 Public 改成 Private。
  5. 於 e2e_test 新增 include directories:
    1. ${CMAKE_SOURCE_DIR}/usecases
    2. ${CMAKE_SOURCE_DIR}/models
  6. 於 e2e_test 新增 link libraries: Model
angtsusiong commented 7 months ago

image Install Drogon as a shared library instead of patching in drogon's CMakeLists.txt