Commit d400a250 authored by Maciej Suminski's avatar Maciej Suminski

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.
parent ef569308
...@@ -25,6 +25,10 @@ set(GAL_SRCS ...@@ -25,6 +25,10 @@ set(GAL_SRCS
) )
add_library(gal STATIC ${GAL_SRCS}) add_library(gal STATIC ${GAL_SRCS})
if(WIN32)
add_definitions(-DGLEW_STATIC)
endif(WIN32)
endif(KICAD_GAL) endif(KICAD_GAL)
set(COMMON_ABOUT_DLG_SRCS set(COMMON_ABOUT_DLG_SRCS
......
...@@ -108,7 +108,19 @@ if(KICAD_GAL) ...@@ -108,7 +108,19 @@ if(KICAD_GAL)
target_link_libraries(cvpcb target_link_libraries(cvpcb
gal gal
${GLEW_LIBRARIES} ${GLEW_LIBRARIES}
${CAIRO_LIBRARIES}
) )
if(WIN32)
target_link_libraries(cvpcb
opengl32
glu32
pixman-1
fontconfig
freetype
bz2
)
endif(WIN32)
endif(KICAD_GAL) endif(KICAD_GAL)
### ###
......
...@@ -430,7 +430,19 @@ if(KICAD_GAL) ...@@ -430,7 +430,19 @@ if(KICAD_GAL)
target_link_libraries(pcbnew target_link_libraries(pcbnew
gal gal
${GLEW_LIBRARIES} ${GLEW_LIBRARIES}
${CAIRO_LIBRARIES}
) )
if(WIN32)
target_link_libraries(pcbnew
opengl32
glu32
pixman-1
fontconfig
freetype
bz2
)
endif(WIN32)
endif(KICAD_GAL) endif(KICAD_GAL)
### ###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment