X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=2824b71037e0a039341b38a6e7468217b1f394cd;hb=b7d44a2d155a1199c25b783b915fd8ba3ce42a69;hp=f568da1c83ac99de964882192ad367a3bfaac08a;hpb=9a441dad97539ec696d33eabb8ac36c222790e7f;p=src%2Flow-level-can-generator.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f568da1..2824b71 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,28 +17,33 @@ ########################################################################### # Add target to project dependency list -PROJECT_TARGET_ADD(can-config-generator) +set(TARGET_NAME can-config-generator) - # Define project Targets - add_executable(${TARGET_NAME} - main.cpp - openxc/message_set.cpp - openxc/can_bus.cpp - openxc/can_message.cpp - openxc/command.cpp - openxc/diagnostic_message.cpp - openxc/mapping.cpp - openxc/signal.cpp) +# Define project Targets +add_executable(${TARGET_NAME} + main.cpp + openxc/message_set.cpp + openxc/can_bus.cpp + openxc/can_message.cpp + openxc/command.cpp + openxc/diagnostic_message.cpp + openxc/mapping.cpp + openxc/signal.cpp) - TARGET_INCLUDE_DIRECTORIES(${TARGET_NAME} - PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/json - ) +TARGET_INCLUDE_DIRECTORIES(${TARGET_NAME} + PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/json +) - # Library dependencies (include updates automatically) - TARGET_LINK_LIBRARIES(can-config-generator - ${link_libraries} - ) +# Library dependencies (include updates automatically) +TARGET_LINK_LIBRARIES(${TARGET_NAME} + ${link_libraries} +) - # installation directory - INSTALL(TARGETS can-config-generator - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +# installation directory +INSTALL(TARGETS ${TARGET_NAME} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + +# Print a helper message when every thing is finished +# ---------------------------------------------------- +set(CLOSING_MESSAGE "Test with: ./src/can-config-generator -m ../tests/basic.json -o application-generated.cpp")