File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ install(FILES "${CUSTOM_CONF_DIR}/sdr.conf" DESTINATION share/doc/${CMAKE_PROJEC
39
39
if (NOT WIN32 )
40
40
add_custom_target (install -conf
41
41
COMMAND ${CMAKE_COMMAND}
42
- -DCMAKE_BINARY_DIR ="${CMAKE_BINARY_DIR} "
42
+ -DCUSTOM_BINARY_DIR ="${CMAKE_BINARY_DIR} "
43
43
-DCUSTOM_CONF_DIR="${CUSTOM_CONF_DIR} "
44
44
-DCUSTOM_SCRIPTS_DIR="${CUSTOM_SCRIPTS_DIR} "
45
45
-DCUSTOM_TELEMETRY_DIR="${CUSTOM_TELEMETRY_DIR} "
Original file line number Diff line number Diff line change 1
- if (NOT EXISTS ~ /direwolf.conf)
2
- install ( FILES "${CMAKE_BINARY_DIR } /direwolf.conf" DESTINATION ~ )
1
+ if (NOT EXISTS $ENV{HOME} /direwolf.conf)
2
+ configure_file ( "${CUSTOM_BINARY_DIR } /direwolf.conf" $ENV{HOME} )
3
3
endif ()
4
4
5
- if (NOT EXISTS ~ /sdr.conf)
6
- install ( FILES "${CUSTOM_CONF_DIR} /sdr.conf" DESTINATION ~ )
5
+ if (NOT EXISTS $ENV{HOME} /sdr.conf)
6
+ configure_file ( "${CUSTOM_CONF_DIR} /sdr.conf" $ENV{HOME} )
7
7
endif ()
8
8
9
- if (NOT EXISTS ~ /dw-start .sh)
10
- install ( FILES "${CUSTOM_SCRIPTS_DIR} /dw-start.sh" DESTINATION ~ )
9
+ if (NOT EXISTS $ENV{HOME} /dw-start .sh)
10
+ configure_file ( "${CUSTOM_SCRIPTS_DIR} /dw-start.sh" $ENV{HOME} )
11
11
endif ()
12
12
13
- if (NOT EXISTS ~ /telem-m0xer-3.txt)
14
- install ( FILES "${CUSTOM_TELEMETRY_DIR} /telem-m0xer-3.txt" DESTINATION ~ )
13
+ if (NOT EXISTS $ENV{HOME} /telem-m0xer-3.txt)
14
+ configure_file ( "${CUSTOM_TELEMETRY_DIR} /telem-m0xer-3.txt" $ENV{HOME} )
15
15
endif ()
16
16
17
- if (NOT EXISTS ~ /telem-balloon.conf)
18
- install ( FILES "${CUSTOM_TELEMETRY_DIR} /telem-balloon.conf" DESTINATION ~ )
17
+ if (NOT EXISTS $ENV{HOME} /telem-balloon.conf)
18
+ configure_file ( "${CUSTOM_TELEMETRY_DIR} /telem-balloon.conf" $ENV{HOME} )
19
19
endif ()
20
20
21
- if (NOT EXISTS ~ /telem-volts.conf)
22
- install ( FILES "${CUSTOM_TELEMETRY_DIR} /telem-volts.conf" DESTINATION ~ )
21
+ if (NOT EXISTS $ENV{HOME} /telem-volts.conf)
22
+ configure_file ( "${CUSTOM_TELEMETRY_DIR} /telem-volts.conf" $ENV{HOME} )
23
23
endif ()
You can’t perform that action at this time.
0 commit comments