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 ##
|
||||
|
||||
set(MAIN_HEADERS
|
||||
assets/resource.h
|
||||
src/quadarray.h
|
||||
src/audio.h
|
||||
src/binding.h
|
||||
|
@ -205,6 +206,10 @@ set(MAIN_SOURCE
|
|||
src/fluid-fun.cpp
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND MAIN_SOURCE assets/resource.rc)
|
||||
endif()
|
||||
|
||||
source_group("MKXP Source" FILES ${MAIN_SOURCE} ${MAIN_HEADERS})
|
||||
|
||||
## Setup embedded source ##
|
||||
|
@ -404,6 +409,7 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
|
|||
${DEFINES}
|
||||
)
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE
|
||||
assets
|
||||
src
|
||||
${SIGCXX_INCLUDE_DIRS}
|
||||
${PIXMAN_INCLUDE_DIRS}
|
||||
|
|
Loading…
Reference in New Issue