From 1ffe006ab5711705885c236d6614ed56f81127dc Mon Sep 17 00:00:00 2001 From: "jk7744.park" Date: Sun, 1 Feb 2015 12:59:34 +0900 Subject: tizen 2.3 release --- tools/CMakeLists.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tools/CMakeLists.txt (limited to 'tools/CMakeLists.txt') diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt new file mode 100644 index 0000000..d7d10ca --- /dev/null +++ b/tools/CMakeLists.txt @@ -0,0 +1,29 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(bcmtool C) + +IF (TIZEN_WEARABLE) +SET(SRCS_4330B1 bcmtool_4330b1_w.c) +ELSE () +SET(SRCS_4330B1 bcmtool_4330b1_m.c) +ENDIF (TIZEN_WEARABLE) + +SET(BCMTOOL_4330B1 ${PROJECT_NAME}_4330b1) + +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) + +FIND_PROGRAM(UNAME NAMES uname) +EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") +IF("${ARCH}" STREQUAL "arm") + ADD_DEFINITIONS("-DTARGET") + MESSAGE("add -DTARGET") +ENDIF("${ARCH}" STREQUAL "arm") + +ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") +ADD_DEFINITIONS("-DFACTORYFS=\"$ENV{FACTORYFS}\"") + +ADD_EXECUTABLE(${BCMTOOL_4330B1} ${SRCS_4330B1}) + +TARGET_LINK_LIBRARIES(${BCMTOOL_4330B1} ${package_LDFLAGS}) + +# install binary file +INSTALL(TARGETS ${BCMTOOL_4330B1} DESTINATION ${PLUGIN_INSTALL_PREFIX}/bin) -- cgit v1.2.3