diff options
Diffstat (limited to 'tools/CMakeLists.txt')
-rw-r--r-- | tools/CMakeLists.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 85e215b..728e073 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,9 +1,15 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(bcmtool C) -SET(SRCS_4330B1 bcmtool_4330b1.c) +IF (TIZEN_WEARABLE_B2) +SET(SRCS_4330 bcmtool_4330b2_w.c) +ELSEIF (TIZEN_WEARABLE_B3) +SET(SRCS_4330 bcmtool_4330b3_w.c) +ELSE () +SET(SRCS_4330 bcmtool_4330m0_m.c) +ENDIF (TIZEN_WEARABLE_B2) -SET(BCMTOOL_4330B1 ${PROJECT_NAME}_4330b1) +SET(BCMTOOL_4330 ${PROJECT_NAME}) SET(PREFIX ${CMAKE_INSTALL_PREFIX}) @@ -17,9 +23,9 @@ ENDIF("${ARCH}" STREQUAL "arm") ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") ADD_DEFINITIONS("-DFACTORYFS=\"$ENV{FACTORYFS}\"") -ADD_EXECUTABLE(${BCMTOOL_4330B1} ${SRCS_4330B1}) +ADD_EXECUTABLE(${BCMTOOL_4330} ${SRCS_4330}) -TARGET_LINK_LIBRARIES(${BCMTOOL_4330B1} ${package_LDFLAGS}) +TARGET_LINK_LIBRARIES(${BCMTOOL_4330} ${package_LDFLAGS}) # install binary file -INSTALL(TARGETS ${BCMTOOL_4330B1} DESTINATION ${PLUGIN_INSTALL_PREFIX}/bin) +INSTALL(TARGETS ${BCMTOOL_4330} DESTINATION ${PLUGIN_INSTALL_PREFIX}/bin) |