2021-06-17 20:14:50 +02:00
|
|
|
|
2021-06-28 00:08:40 +02:00
|
|
|
set(assignment_HEADERS
|
|
|
|
calc.hpp
|
|
|
|
json_output.hpp
|
|
|
|
proto_loader.hpp
|
|
|
|
spatial_grid.hpp)
|
|
|
|
|
2021-06-17 20:14:50 +02:00
|
|
|
set(assignment_SOURCES
|
2021-06-26 09:15:57 +02:00
|
|
|
calc.cpp
|
|
|
|
json_output.cpp
|
|
|
|
proto_loader.cpp)
|
2021-06-17 20:14:50 +02:00
|
|
|
|
2021-06-28 00:08:40 +02:00
|
|
|
add_library(assignment ${assignment_SOURCES} ${assignment_HEADERS})
|
|
|
|
set_target_properties(assignment PROPERTIES PUBLIC_HEADER "${assignment_HEADERS}")
|
|
|
|
target_link_libraries(assignment PRIVATE proto ${PROTOBUF_LIBRARY} )
|
|
|
|
target_link_libraries(assignment PUBLIC nlohmann_json::nlohmann_json)
|
|
|
|
|
|
|
|
add_executable(main main.cpp)
|
|
|
|
target_link_libraries(main assignment)
|
|
|
|
|