Modified CMakeLists.txt in order to compile Kicad with KICAD_GAL=ON for Windows
Added settings that allow to use M cross environment (http://mxe.cc) to crosscompile Kicad for Windows.
This commit is contained in:
parent
ef5693080f
commit
d400a25075
|
@ -25,6 +25,10 @@ set(GAL_SRCS
|
|||
)
|
||||
|
||||
add_library(gal STATIC ${GAL_SRCS})
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DGLEW_STATIC)
|
||||
endif(WIN32)
|
||||
endif(KICAD_GAL)
|
||||
|
||||
set(COMMON_ABOUT_DLG_SRCS
|
||||
|
|
|
@ -106,9 +106,21 @@ target_link_libraries(cvpcb
|
|||
|
||||
if(KICAD_GAL)
|
||||
target_link_libraries(cvpcb
|
||||
gal
|
||||
${GLEW_LIBRARIES}
|
||||
gal
|
||||
${GLEW_LIBRARIES}
|
||||
${CAIRO_LIBRARIES}
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(cvpcb
|
||||
opengl32
|
||||
glu32
|
||||
pixman-1
|
||||
fontconfig
|
||||
freetype
|
||||
bz2
|
||||
)
|
||||
endif(WIN32)
|
||||
endif(KICAD_GAL)
|
||||
|
||||
###
|
||||
|
|
|
@ -428,9 +428,21 @@ target_link_libraries(pcbnew
|
|||
|
||||
if(KICAD_GAL)
|
||||
target_link_libraries(pcbnew
|
||||
gal
|
||||
${GLEW_LIBRARIES}
|
||||
gal
|
||||
${GLEW_LIBRARIES}
|
||||
${CAIRO_LIBRARIES}
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(pcbnew
|
||||
opengl32
|
||||
glu32
|
||||
pixman-1
|
||||
fontconfig
|
||||
freetype
|
||||
bz2
|
||||
)
|
||||
endif(WIN32)
|
||||
endif(KICAD_GAL)
|
||||
|
||||
###
|
||||
|
|
Loading…
Reference in New Issue