Skip to content

Format CMakeLists.txt #17

@jleung51

Description

@jleung51

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}
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions