Added and tested Windows support

This commit is contained in:
dickelbeck 2007-12-20 00:55:04 +00:00
parent 6991b49691
commit 315850fa6d
1 changed files with 43 additions and 29 deletions

View File

@ -28,7 +28,9 @@ FIND_PACKAGE(wxWidgets REQUIRED)
IF(UNIX)
IF(APPLE)
ELSE(APPLE)
#SET(CMAKE_INSTALL_PATH /usr/local)
# like all variables, CMAKE_INSTALL_PREFIX can be over-ridden on the command line
SET(CMAKE_INSTALL_PREFIX /usr/local)
# when used later, "bin" and others with no leading / is relative to CMAKE_INSTALL_PREFIX
SET(KICAD_BIN bin CACHE PATH "Location of KiCad binaries.")
SET(KICAD_PLUGINS lib/kicad/plugins CACHE PATH "Location of KiCad plugins.")
SET(KICAD_DOCS share/doc/kicad CACHE PATH "Location of KiCad documentation files.")
@ -41,6 +43,17 @@ IF(UNIX)
ENDIF(UNIX)
IF(WIN32)
# like all variables, CMAKE_INSTALL_PREFIX can be over-ridden on the command line
SET(CMAKE_INSTALL_PREFIX C:/kicad)
# when used later, "winexe" and others with no leading / is relative to CMAKE_INSTALL_PREFIX
SET(KICAD_BIN winexe CACHE PATH "Location of KiCad binaries.")
SET(KICAD_PLUGINS lib/kicad/plugins CACHE PATH "Location of KiCad plugins.")
SET(KICAD_DOCS share/doc/kicad CACHE PATH "Location of KiCad documentation files.")
SET(KICAD_DATA share/kicad CACHE PATH "Location of KiCad data files.")
SET(KICAD_MODULES ${KICAD_DATA}/modules)
SET(KICAD_LIBRARY ${KICAD_DATA}/library)
SET(KICAD_INTERNAT ${KICAD_DATA}/internat)
SET(KICAD_TEMPLATE ${KICAD_DATA}/template)
ENDIF(WIN32)
# Did we find wxWidgets ? This condition will fail
@ -78,3 +91,4 @@ ADD_SUBDIRECTORY(help)
ADD_SUBDIRECTORY(library)
ADD_SUBDIRECTORY(modules)
ADD_SUBDIRECTORY(template)