mingw-w64: allow cmake cross-compile
Tested on gentoo with x86_64-w64-mingw32 toolchain and libraries. Signed-off-by: Marty Plummer <ntzrmtthihu777@gmail.com>
This commit is contained in:
parent
bd694f9f99
commit
f5c30affaa
|
@ -99,6 +99,7 @@ find_package(ZLIB REQUIRED)
|
||||||
## Setup main source ##
|
## Setup main source ##
|
||||||
|
|
||||||
set(MAIN_HEADERS
|
set(MAIN_HEADERS
|
||||||
|
assets/resource.h
|
||||||
src/quadarray.h
|
src/quadarray.h
|
||||||
src/audio.h
|
src/audio.h
|
||||||
src/binding.h
|
src/binding.h
|
||||||
|
@ -205,6 +206,10 @@ set(MAIN_SOURCE
|
||||||
src/fluid-fun.cpp
|
src/fluid-fun.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
list(APPEND MAIN_SOURCE assets/resource.rc)
|
||||||
|
endif()
|
||||||
|
|
||||||
source_group("MKXP Source" FILES ${MAIN_SOURCE} ${MAIN_HEADERS})
|
source_group("MKXP Source" FILES ${MAIN_SOURCE} ${MAIN_HEADERS})
|
||||||
|
|
||||||
## Setup embedded source ##
|
## Setup embedded source ##
|
||||||
|
@ -404,6 +409,7 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
|
||||||
${DEFINES}
|
${DEFINES}
|
||||||
)
|
)
|
||||||
target_include_directories(${PROJECT_NAME} PRIVATE
|
target_include_directories(${PROJECT_NAME} PRIVATE
|
||||||
|
assets
|
||||||
src
|
src
|
||||||
${SIGCXX_INCLUDE_DIRS}
|
${SIGCXX_INCLUDE_DIRS}
|
||||||
${PIXMAN_INCLUDE_DIRS}
|
${PIXMAN_INCLUDE_DIRS}
|
||||||
|
|
Loading…
Reference in New Issue