Skip to content

Commit cb2f50f

Browse files
committed
Fix plugin_template
1 parent 6f42ec3 commit cb2f50f

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

plugins/plugin_template/__project__/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 2.6)
55
include(FindPkgConfig)
66

77
find_package(lib_manager)
8-
libs_defaults()
8+
lib_defaults()
99
define_module_info()
1010

1111

plugins/plugin_template/create_new_project.sh

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,20 @@ if [ $answer = "y" ]; then
4545

4646
echo "replace variables ..."
4747

48-
FILES="${projDir}/CMakeLists.txt
49-
${projDir}/manifest.xml
50-
${projDir}/src/${classname}.h
51-
${projDir}/src/${classname}.cpp
52-
${projDir}/src/${classname}_MainWin.h
53-
${projDir}/src/${classname}_MainWin.cpp"
48+
if [ $gui = "y" ]; then
49+
FILES="${projDir}/CMakeLists.txt
50+
${projDir}/manifest.xml
51+
${projDir}/src/${classname}.h
52+
${projDir}/src/${classname}.cpp
53+
${projDir}/src/${classname}_MainWin.h
54+
${projDir}/src/${classname}_MainWin.cpp"
55+
else
56+
FILES="${projDir}/CMakeLists.txt
57+
${projDir}/manifest.xml
58+
${projDir}/src/${classname}.h
59+
${projDir}/src/${classname}.cpp"
60+
fi
61+
5462
SED_PAIRS="__project__:${projName}
5563
__classname__:${classname}
5664
__description__:${description}
@@ -77,4 +85,4 @@ else
7785
echo -e "\033[31;1m"
7886
echo "abort"
7987
echo -e "\033[0m"
80-
fi
88+
fi

0 commit comments

Comments
 (0)