Compare commits
No commits in common. "95363f375e401ae2b85ce36712440c4f58749f3f" and "a58ed1564e1da31d0873e28d00b357e63f64bbc2" have entirely different histories.
95363f375e
...
a58ed1564e
3 changed files with 5 additions and 16 deletions
|
|
@ -17,8 +17,8 @@ if(NOT UNIT_TESTING)
|
|||
|
||||
#These get defined in the toolchain files.
|
||||
target_compile_options(module_name PUBLIC
|
||||
#${OBJECT_GEN_FLAGS}
|
||||
#${C_FLAGS_ARCH}
|
||||
${OBJECT_GEN_FLAGS}
|
||||
${C_FLAGS_ARCH}
|
||||
)
|
||||
|
||||
else()
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ add_c_module () {
|
|||
sed -i '' -e "3s/todays_date/$(date +%Y)/" $modsrc_dir/${modname}.c
|
||||
|
||||
sed -e "s/module_name/${modname_cap}/" $MODULE_DIR/module_name.h > $modsrc_dir/${modname}.h
|
||||
sed -i '' -e "5s/todays_date/$(date +%Y)/" $modsrc_dir/${modname}.h
|
||||
sed -i '' -e "3s/todays_date/$(date +%Y)/" $modsrc_dir/${modname}.h
|
||||
|
||||
sed -e "s/module_name/${modname}/" $MODULE_DIR/CMakeLists.txt > $modsrc_dir/CMakeLists.txt
|
||||
|
||||
|
|
@ -281,7 +281,7 @@ add_c_module () {
|
|||
sed -i '' -e "3s/todays_date/$(date +%Y)/" $modsrc_dir/${modname}.c
|
||||
|
||||
sed -e "s/module_name/${modname_cap}/" $MODULE_DIR/module_name.h > $modsrc_dir/${modname}.h
|
||||
sed -i '' -e "5s/todays_date/$(date +%Y)/" $modsrc_dir/${modname}.h
|
||||
sed -i '' -e "3s/todays_date/$(date +%Y)/" $modsrc_dir/${modname}.h
|
||||
|
||||
sed -e "s/module_name/${modname}/" $MODULE_DIR/CMakeLists.txt > $modsrc_dir/CMakeLists.txt
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,3 @@
|
|||
add_executable(${PROJECT_NAME}
|
||||
add_executable(main
|
||||
main.c
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/inc/
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE
|
||||
#???
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue