Removed the env directory and correccted the main.c chek funtion in run.sh

master
Kerem Yollu 2 years ago
parent fb0ff98d6e
commit 4493b5f468

@ -48,7 +48,7 @@ message("${Blue} |--> Libs used\t\t: ${EXTRA_LIBS} ${ColourReset}")
####################################################################################################
#EXECUTABLE
####################################################################################################
add_executable(${EXECUTABLE} ../../main.c)
add_executable(${EXECUTABLE} ../main.c)
target_compile_options(${EXECUTABLE} PRIVATE ${MAIN_FLAGS})
target_compile_definitions(${EXECUTABLE} PRIVATE ${MAIN_DEFS})
target_include_directories(${EXECUTABLE} PUBLIC ${MAIN_INCLUDES})

@ -4,9 +4,7 @@ CSL_TO_USE=$1
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
FILE=$SCRIPT_DIR/../ked_build
cd $SCRIPT_DIR/env
cd $SCRIPT_DIR
build()
@ -70,15 +68,8 @@ build()
autoInit()
{
if [[ -f "../main.c" ]];then
if [[ -f "../main.h" ]];then
if [[ -f "$SCRIPT_DIR/../main.c" ]];then
build
else
echo "Main.h is not found"
echo "Creating sample project"
cp $SCRIPT_DIR/examples/autoInit/main.* $SCRIPT_DIR/../
build
fi
else
echo "Main.c is not fount"
echo "Creating sample project"

Loading…
Cancel
Save