cmake_minimum_required(VERSION 3.13)
#
#############################################################
# 	Create static Library and add source code
# Create Library and add Curent Library to project library list
#############################################################
#

# Create Library
cp_internal_library_register(version 0)


set(SRCS 
    "PM_version.c"
)

# product build info
cp_library_set_dependencies(TARGET_BUILDTIME_VER)

#
#############################################################
# Add Internel depend header file
#############################################################
#
if(0)
cp_library_include_directories(

)
endif()

#
#############################################################
# Public curent header file to total project
# Add the directory to INTERFACE LIBRARY
#############################################################
#
cp_library_include_directories(
	./export/inc/outdated
	${PROJECT_SOURCE_ROOT}/rtos/kernel/export/inc
)

#
#############################################################
# Extenel Libriry that need to link
#
#############################################################
#
#cp_library_link_libraries()


#
#############################################################
# The defined flags that compile need use
#############################################################
#
if(CONFIG_RELEASE_INFO)
cp_library_compile_definitions(_VERSION_RELEASE_)
else()
cp_library_compile_definitions(_VERSION_DEBUG_)
endif()

#
#############################################################
# The compile option flags that need use
#############################################################
#
#cp_library_cc_option()

#
# Add source code to library
#
#cp_library_sources_ifdef(CONFIG_APP main.c)
cp_library_sources(${SRCS})

