summaryrefslogtreecommitdiffstats
path: root/low-can-binding/CMakeLists.txt
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-04-11 17:55:57 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-04-11 17:55:57 +0200
commit181b0eda648dd7e770414fd5980644ce56711f5d (patch)
tree06c89d5e19bdc6cc391f847ad16858df859f6d93 /low-can-binding/CMakeLists.txt
parent511b3c469ead67be27d2d742699a23be28666b24 (diff)
Fix wrong target name variable.
Change-Id: I946dc9c44ecc6f9976c4accb65fc4b1efb4c7ca3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/CMakeLists.txt')
-rw-r--r--low-can-binding/CMakeLists.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/low-can-binding/CMakeLists.txt b/low-can-binding/CMakeLists.txt
index ae035c9..ecfd5fa 100644
--- a/low-can-binding/CMakeLists.txt
+++ b/low-can-binding/CMakeLists.txt
@@ -30,31 +30,31 @@ PROJECT_TARGET_ADD(low-can-binding)
add_library(${shortname} STATIC ${sources_files})
endif(IS_DIRECTORY ${filename})
endforeach()
-
- add_library(${PROJECT_NAME} MODULE ${PROJECT_NAME}.cpp configuration.cpp configuration-generated.cpp
+
+ add_library(${TARGET_NAME} MODULE ${TARGET_NAME}.cpp configuration.cpp configuration-generated.cpp
can/can-bus.cpp can/can-bus-dev.cpp can/can-message-set.cpp can/can-message-definition.cpp can/can-message.cpp can/can-signals.cpp can/can-decoder.cpp
diagnostic/diagnostic-message.cpp diagnostic/diagnostic-manager.cpp diagnostic/active-diagnostic-request.cpp
utils/signals.cpp utils/openxc-utils.cpp utils/timer.cpp utils/socket.cpp)
# Binder exposes a unique public entry point
- SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES
+ SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
PREFIX ""
LINK_FLAGS ${BINDINGS_LINK_FLAG}
- OUTPUT_NAME ${PROJECT_NAME}
+ OUTPUT_NAME ${TARGET_NAME}
)
# Library dependencies (include updates automatically)
- TARGET_LINK_LIBRARIES(${PROJECT_NAME}
+ TARGET_LINK_LIBRARIES(${TARGET_NAME}
${EXTRA_LINK_LIBRARIES}
${link_libraries}
)
# installation directory
- INSTALL(TARGETS ${PROJECT_NAME}
+ INSTALL(TARGETS ${TARGET_NAME}
LIBRARY DESTINATION ${BINDINGS_INSTALL_DIR})
# WGT packaging
- message(STATUS "Creation of ${PROJECT_NAME}.wgt package for AppFW")
+ message(STATUS "Creation of ${TARGET_NAME}.wgt package for AppFW")
configure_file(${PROJECT_WGT_DIR}/config.xml config.xml)
@@ -68,14 +68,14 @@ PROJECT_TARGET_ADD(low-can-binding)
endif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_WGT_DIR}/etc")
add_custom_command(
- OUTPUT ${PROJECT_NAME}.wgt
- DEPENDS ${PROJECT_NAME} ${EXTRA_LINK_LIBRARIES} ${conf_files} ${PROJECT_WGT_DIR}/config.xml
+ OUTPUT ${TARGET_NAME}.wgt
+ DEPENDS ${TARGET_NAME} ${EXTRA_LINK_LIBRARIES} ${conf_files} ${PROJECT_WGT_DIR}/config.xml
COMMAND rm -rf package
COMMAND mkdir -p package/lib package/htdocs package/etc
COMMAND cp config.xml package/
COMMAND cp ${conf_files} package/etc
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/packaging/wgt/${PROJECT_ICON} package/icon.png
- COMMAND cp ${PROJECT_NAME}.so package/lib
- COMMAND wgtpkg-pack -f -o ${PROJECT_NAME}.wgt package
+ COMMAND cp ${TARGET_NAME}.so package/lib
+ COMMAND wgtpkg-pack -f -o ${TARGET_NAME}.wgt package
)
- add_custom_target(widget ALL DEPENDS ${PROJECT_NAME}.wgt) \ No newline at end of file
+ add_custom_target(widget ALL DEPENDS ${TARGET_NAME}.wgt)