mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-28 10:09:24 +01:00
More windows fixes
This commit is contained in:
parent
72aa271b23
commit
4d3bd03f16
@ -68,6 +68,13 @@ include_directories(${LASTFM_INCLUDE_DIRS})
|
|||||||
# and don't exist on my mingw toolchain
|
# and don't exist on my mingw toolchain
|
||||||
list(REMOVE_ITEM QT_LIBRARIES "-lGLU -lGL")
|
list(REMOVE_ITEM QT_LIBRARIES "-lGLU -lGL")
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
# RC compiler
|
||||||
|
string(REPLACE "gcc" "windres" CMAKE_RC_COMPILER_INIT ${CMAKE_C_COMPILER})
|
||||||
|
ENABLE_LANGUAGE(RC)
|
||||||
|
SET(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -O coff -o <OBJECT> <SOURCE>")
|
||||||
|
endif(WIN32)
|
||||||
|
|
||||||
# Subdirectories
|
# Subdirectories
|
||||||
add_subdirectory(3rdparty/qtsingleapplication)
|
add_subdirectory(3rdparty/qtsingleapplication)
|
||||||
add_subdirectory(3rdparty/qxt)
|
add_subdirectory(3rdparty/qxt)
|
||||||
|
@ -168,6 +168,11 @@ else(APPLE)
|
|||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
|
# resource file for windows
|
||||||
|
if(WIN32)
|
||||||
|
set(CLEMENTINE-WIN32-RESOURCES ../dist/windres.rc)
|
||||||
|
endif(WIN32)
|
||||||
|
|
||||||
qt4_wrap_cpp(CLEMENTINE-SOURCES-MOC ${CLEMENTINE-MOC-HEADERS})
|
qt4_wrap_cpp(CLEMENTINE-SOURCES-MOC ${CLEMENTINE-MOC-HEADERS})
|
||||||
qt4_wrap_ui(CLEMENTINE-SOURCES-UI ${CLEMENTINE-UI})
|
qt4_wrap_ui(CLEMENTINE-SOURCES-UI ${CLEMENTINE-UI})
|
||||||
qt4_add_resources(CLEMENTINE-SOURCES-RESOURCE ${CLEMENTINE-RESOURCES} ${CLEMENTINE-QM-RESOURCE})
|
qt4_add_resources(CLEMENTINE-SOURCES-RESOURCE ${CLEMENTINE-RESOURCES} ${CLEMENTINE-QM-RESOURCE})
|
||||||
@ -205,6 +210,8 @@ add_dependencies(clementine_lib qtsingleapplication qxt)
|
|||||||
|
|
||||||
add_executable(clementine
|
add_executable(clementine
|
||||||
MACOSX_BUNDLE
|
MACOSX_BUNDLE
|
||||||
|
WIN32
|
||||||
|
${CLEMENTINE-WIN32-RESOURCES}
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
target_link_libraries(clementine clementine_lib)
|
target_link_libraries(clementine clementine_lib)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user