diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-19 16:08:25 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-19 16:09:27 +0100 |
commit | b7d44a2d155a1199c25b783b915fd8ba3ce42a69 (patch) | |
tree | 466b45b0923324f6e2562820a69cb4527b7ac3af /src/CMakeLists.txt | |
parent | 9a441dad97539ec696d33eabb8ac36c222790e7f (diff) |
Get rid of usage of CMake moduleguppy_6.99.4guppy_6.99.3guppy/6.99.4guppy/6.99.36.99.46.99.3
The CMake apps module isn't required here, this isn't a binding
or nothing to do with the Application Framework. Usage of the CMake
module impl property and commands that we don't want to be handled by
it like a default install directory.
Change-Id: Iba68b9e6802320069fda2f5a563536b39900dd3c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 47 |
1 files changed, 26 insertions, 21 deletions
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") |