CMakeLists.txt: Updated the rule for shared memory alignment.
CMakeLists.txt: Updated the rule for shared memory alignment.

Due to the new changes for the subsys/app_memory we need to
have the script for smem run before any elf is created.
This is needed because the compiled code will have references to
certain linker variables that will be created by
gen_app_partitions.py.

Signed-off-by: Adithya Baglody <06b44f6fa9a97a2b955c2d2cd070279967447860@intel.com>

punitvara/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr,punitvara/zephyr,explora26/zephyr,kraj/zephyr,finikorg/zephyr,galak/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,punitvara/zephyr,explora26/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,galak/zephyr,ldts/zephyr,finikorg/zephyr,ldts/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,ldts/zephyr,explora26/zephyr,nashif/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,kraj/zephyr,explora26/zephyr,ldts/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,galak/zephyr,nashif/zephyr,ldts/zephyr,Vudentz/zephyr,kraj/zephyr,finikorg/zephyr,Vudentz/zephyr