Allows cross-compilation to windows targets.

Tested on gentoo with x86_64-w64-mingw32 toolchain and libraries.

Signed-off-by: Marty Plummer <ntzrmtthihu777@gmail.com>
This commit is contained in:
Marty Plummer 2017-05-25 04:17:02 -05:00
parent 128cc08e89
commit c09d24ff0a
1 changed files with 6 additions and 0 deletions

View File

@ -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}