VC++ compilation
This commit is contained in:
@@ -130,7 +130,7 @@ Section "OpenTX Companion" SecDummy
|
|||||||
|
|
||||||
CreateDirectory "$INSTDIR\lang"
|
CreateDirectory "$INSTDIR\lang"
|
||||||
SetOutPath "$INSTDIR\lang"
|
SetOutPath "$INSTDIR\lang"
|
||||||
File "*.qm"
|
File "*companion/src/.qm"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
;Store installation folder
|
;Store installation folder
|
||||||
|
|||||||
@@ -16,9 +16,7 @@ option(AUTOSWITCH "Automatic switch detection in menus" ON)
|
|||||||
|
|
||||||
set(OPT s)
|
set(OPT s)
|
||||||
|
|
||||||
if (NOT MSVC)
|
|
||||||
enable_language(ASM)
|
enable_language(ASM)
|
||||||
endif()
|
|
||||||
|
|
||||||
set(THIRDPARTY_DIR thirdparty)
|
set(THIRDPARTY_DIR thirdparty)
|
||||||
set(LUA_DIR ${THIRDPARTY_DIR}/Lua/src)
|
set(LUA_DIR ${THIRDPARTY_DIR}/Lua/src)
|
||||||
@@ -659,7 +657,6 @@ endif()
|
|||||||
|
|
||||||
set(SRC ${SRC} ${FIRMWARE_SRC})
|
set(SRC ${SRC} ${FIRMWARE_SRC})
|
||||||
|
|
||||||
if(NOT MSVC)
|
|
||||||
include(CMakeForceCompiler)
|
include(CMakeForceCompiler)
|
||||||
|
|
||||||
set(WARNING_FLAGS "-Wall -Wno-strict-aliasing -Wformat -Wreturn-type -Wunused -Wuninitialized -Wunknown-pragmas -Wno-switch -Wtype-limits")
|
set(WARNING_FLAGS "-Wall -Wno-strict-aliasing -Wformat -Wreturn-type -Wunused -Wuninitialized -Wunknown-pragmas -Wno-switch -Wtype-limits")
|
||||||
@@ -747,4 +744,4 @@ if(NOT MSVC)
|
|||||||
DEPENDS firmware.bin
|
DEPENDS firmware.bin
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|||||||
Reference in New Issue
Block a user