Windows fixes
This commit is contained in:
parent
89c920479c
commit
96213fc3f3
4 changed files with 28 additions and 24 deletions
|
@ -193,7 +193,7 @@ INCLUDE_DIRECTORIES(${QT_MOBILITY_INCLUDE_DIR})
|
|||
INCLUDE_DIRECTORIES(${QT_MOBILITY_MULTIMEDIAKIT_INCLUDE_DIR})
|
||||
|
||||
ADD_EXECUTABLE(cockatrice WIN32 MACOSX_BUNDLE ${cockatrice_SOURCES} ${cockatrice_QM} ${cockatrice_RESOURCES_RCC} ${cockatrice_HEADERS_MOC})
|
||||
TARGET_LINK_LIBRARIES(cockatrice cockatrice_common ${QT_LIBRARIES} ${QT_MOBILITY_MULTIMEDIAKIT_LIBRARY} ${PROTOBUF_LIBRARIES})
|
||||
TARGET_LINK_LIBRARIES(cockatrice cockatrice_common ${QT_LIBRARIES} ${QT_MOBILITY_MULTIMEDIAKIT_LIBRARY})
|
||||
|
||||
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/cockatrice DESTINATION bin)
|
||||
if (NOT WIN32 AND NOT APPLE)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
||||
add_subdirectory(pb)
|
||||
|
||||
SET(common_SOURCES
|
||||
decklist.cpp
|
||||
|
@ -42,7 +43,6 @@ INCLUDE_DIRECTORIES(sfmt)
|
|||
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
add_subdirectory(pb)
|
||||
add_library(cockatrice_common ${common_SOURCES} ${common_HEADERS_MOC})
|
||||
target_link_libraries(cockatrice_common cockatrice_protocol)
|
||||
|
||||
|
|
|
@ -133,7 +133,5 @@ include_directories(${PROTOBUF_INCLUDE_DIRS})
|
|||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${PROTO_FILES})
|
||||
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
|
||||
add_library(cockatrice_protocol ${PROTO_SRCS} ${PROTO_HDRS})
|
||||
#target_link_libraries(${PROTOBUF_LIBRARIES})
|
||||
target_link_libraries(cockatrice_protocol general $(PROTOBUF_LIBRARIES) general -lprotobuf)
|
||||
|
|
|
@ -31,30 +31,38 @@ InstallDir "$PROGRAMFILES\Cockatrice"
|
|||
|
||||
Section "Application" SecApplication
|
||||
SetOutPath "$INSTDIR"
|
||||
File ..\cockatrice\release\cockatrice.exe
|
||||
File ..\oracle\release\oracle.exe
|
||||
File data\libgcc_s_dw2-1.dll
|
||||
File data\mingwm10.dll
|
||||
File data\QtCore4.dll
|
||||
File data\QtGui4.dll
|
||||
File data\QtNetwork4.dll
|
||||
File data\QtSvg4.dll
|
||||
File data\QtXml4.dll
|
||||
File data\QtMultimedia4.dll
|
||||
File data\QtScript4.dll
|
||||
File ..\build\cockatrice\cockatrice.exe
|
||||
File ..\build\oracle\oracle.exe
|
||||
File C:\MinGW\bin\libstdc++-6.dll
|
||||
File C:\MinGW\bin\libgcc_s_dw2-1.dll
|
||||
File C:\MinGW\bin\mingwm10.dll
|
||||
File C:\MinGW\bin\libprotobuf-7.dll
|
||||
File C:\MinGW\bin\QtCore4.dll
|
||||
File C:\MinGW\bin\QtGui4.dll
|
||||
File C:\MinGW\bin\QtNetwork4.dll
|
||||
File C:\MinGW\bin\QtSvg4.dll
|
||||
File C:\MinGW\bin\QtXml4.dll
|
||||
File C:\MinGW\bin\QtMultimedia4.dll
|
||||
File C:\MinGW\bin\QtScript4.dll
|
||||
|
||||
SetOutPath "$INSTDIR\zonebg"
|
||||
File /r ..\zonebg\*.*
|
||||
|
||||
SetOutPath "$INSTDIR\plugins"
|
||||
File /r data\plugins\*.*
|
||||
SetOutPath "$INSTDIR\plugins\codecs"
|
||||
File C:\MinGW\plugins\codecs\qcncodecs4.dll
|
||||
File C:\MinGW\plugins\codecs\qjpcodecs4.dll
|
||||
File C:\MinGW\plugins\codecs\qkrcodecs4.dll
|
||||
File C:\MinGW\plugins\codecs\qtwcodecs4.dll
|
||||
SetOutPath "$INSTDIR\plugins\iconengines"
|
||||
File C:\MinGW\plugins\iconengines\qsvgicon4.dll
|
||||
SetOutPath "$INSTDIR\plugins\imageformats"
|
||||
File C:\MinGW\plugins\imageformats\qjpeg4.dll
|
||||
File c:\MinGW\plugins\imageformats\qsvg4.dll
|
||||
|
||||
SetOutPath "$INSTDIR\sounds"
|
||||
File /r ..\sounds\*.*
|
||||
|
||||
SetOutPath "$INSTDIR\pics"
|
||||
SetOutPath "$INSTDIR\decks"
|
||||
|
||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
|
||||
IntFmt $0 "0x%08X" $0
|
||||
|
@ -83,13 +91,11 @@ Section Uninstall
|
|||
RMDir /r "$INSTDIR\zonebg"
|
||||
RMDir /r "$INSTDIR\plugins"
|
||||
RMDir /r "$INSTDIR\sounds"
|
||||
RMDir "$INSTDIR\decks"
|
||||
RMDir /r "$INSTDIR\pics\downloadedPics"
|
||||
RMDir "$INSTDIR\pics"
|
||||
Delete "$INSTDIR\uninstall.exe"
|
||||
Delete "$INSTDIR\cockatrice.exe"
|
||||
Delete "$INSTDIR\oracle.exe"
|
||||
Delete "$INSTDIR\cards.xml"
|
||||
Delete "$INSTDIR\libstdc++-6.dll"
|
||||
Delete "$INSTDIR\libprotobuf-7.dll"
|
||||
Delete "$INSTDIR\libgcc_s_dw2-1.dll"
|
||||
Delete "$INSTDIR\mingwm10.dll"
|
||||
Delete "$INSTDIR\QtCore4.dll"
|
||||
|
|
Loading…
Reference in a new issue