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:
Maciej Suminski 2013-04-09 16:12:18 +02:00
parent ef5693080f
commit d400a25075
3 changed files with 32 additions and 4 deletions

View File

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

View File

@ -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)
###

View File

@ -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)
###