jleung51-coursework / phaser

C++ servers utilizing the Microsoft Azure Storage Client Library.
MIT License
1 stars 0 forks source link

Format CMakeLists.txt #17

Open jleung51 opened 8 years ago

jleung51 commented 8 years ago

Migrated from GitLab.

Most of the code in CMakeLists currently is formatted like this:

add_executable (tester tester-basicserver.cpp testmain.cpp)
target_link_libraries (tester ${REST} ${REST_LIBRARIES} ${STORE} ${TEST})

However, it should be formatted in a way which is easier to read, like this:


add_executable (
  basicserver
  ../src/BasicServer.cpp
  ../src/ServerUtils.cpp
  ../include/ServerUtils.h
  ../src/TableCache.cpp
  ../include/TableCache.h
)
target_link_libraries (
  basicserver
  ${REST}
  ${REST_LIBRARIES}
  ${STORE}
)