Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
cda4ed96
Commit
cda4ed96
authored
Dec 26, 2007
by
f3nix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some tweaks for Windows CMake.
parent
36950919
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
15 deletions
+58
-15
CMakeLists.txt
CMakeLists.txt
+7
-8
CMakeLists.txt
cvpcb/CMakeLists.txt
+10
-1
CMakeLists.txt
eeschema/CMakeLists.txt
+11
-3
CMakeLists.txt
gerbview/CMakeLists.txt
+10
-1
CMakeLists.txt
kicad/CMakeLists.txt
+10
-1
CMakeLists.txt
pcbnew/CMakeLists.txt
+10
-1
No files found.
CMakeLists.txt
View file @
cda4ed96
...
...
@@ -44,16 +44,15 @@ ENDIF(UNIX)
IF
(
WIN32
)
# Like all variables, CMAKE_INSTALL_PREFIX can be over-ridden on the command line.
SET
(
CMAKE_INSTALL_PREFIX
C
:/kicad
)
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
)
SET
(
KICAD_PLUGINS
${
KICAD_BIN
}
/plugins
)
SET
(
KICAD_DOCS help
)
SET
(
KICAD_MODULES modules
)
SET
(
KICAD_LIBRARY library
)
SET
(
KICAD_INTERNAT internat
)
SET
(
KICAD_TEMPLATE template
)
ENDIF
(
WIN32
)
# Did we find wxWidgets ? This condition will fail
...
...
cvpcb/CMakeLists.txt
View file @
cda4ed96
...
...
@@ -55,7 +55,16 @@ SET(CVPCB_EXTRA_SRCS
../share/zoom.cpp
)
IF
(
WIN32
)
SET
(
CVPCB_RESOURCES cvpcb.rc
)
IF
(
MINGW
)
# resource compilation for mingw (http://www.cmake.org/Bug/view.php?id=4068)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/cvpcb_rc.o
COMMAND windres.exe -I
${
CMAKE_CURRENT_SOURCE_DIR
}
-i
${
CMAKE_CURRENT_SOURCE_DIR
}
/cvpcb.rc
-o
${
CMAKE_CURRENT_BINARY_DIR
}
/cvpcb_rc.o
)
SET
(
CVPCB_RESOURCES
${
CMAKE_CURRENT_BINARY_DIR
}
/cvpcb_rc.o
)
ELSE
(
MINGW
)
SET
(
CVPCB_RESOURCES cvpcb.rc
)
ENDIF
(
MINGW
)
ENDIF
(
WIN32
)
IF
(
APPLE
)
SET
(
CVPCB_RESOURCES cvpcb.r
)
...
...
eeschema/CMakeLists.txt
View file @
cda4ed96
...
...
@@ -101,11 +101,19 @@ SET(EESCHEMA_EXTRA_SRCS
../share/setpage.cpp
../share/svg_print.cpp
../share/wxprint.cpp
../share/zoom.cpp
)
../share/zoom.cpp
)
IF
(
WIN32
)
SET
(
EESCHEMA_RESOURCES eeschema.rc
)
IF
(
MINGW
)
# resource compilation for mingw (http://www.cmake.org/Bug/view.php?id=4068)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/eeschema_rc.o
COMMAND windres.exe -I
${
CMAKE_CURRENT_SOURCE_DIR
}
-i
${
CMAKE_CURRENT_SOURCE_DIR
}
/eeschema.rc
-o
${
CMAKE_CURRENT_BINARY_DIR
}
/eeschema_rc.o
)
SET
(
EESCHEMA_RESOURCES
${
CMAKE_CURRENT_BINARY_DIR
}
/eeschema_rc.o
)
ELSE
(
MINGW
)
SET
(
EESCHEMA_RESOURCES eeschema.rc
)
ENDIF
(
MINGW
)
ENDIF
(
WIN32
)
IF
(
APPLE
)
SET
(
EESCHEMA_RESOURCES eeschema.r
)
...
...
gerbview/CMakeLists.txt
View file @
cda4ed96
...
...
@@ -57,7 +57,16 @@ SET(GERBVIEW_EXTRA_SRCS
../share/zoom.cpp
)
IF
(
WIN32
)
SET
(
GERBVIEW_RESOURCES gerbview.rc
)
IF
(
MINGW
)
# resource compilation for mingw (http://www.cmake.org/Bug/view.php?id=4068)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/gerbview_rc.o
COMMAND windres.exe -I
${
CMAKE_CURRENT_SOURCE_DIR
}
-i
${
CMAKE_CURRENT_SOURCE_DIR
}
/gerbview.rc
-o
${
CMAKE_CURRENT_BINARY_DIR
}
/gerbview_rc.o
)
SET
(
GERBVIEW_RESOURCES
${
CMAKE_CURRENT_BINARY_DIR
}
/gerbview_rc.o
)
ELSE
(
MINGW
)
SET
(
GERBVIEW_RESOURCES gerbview.rc
)
ENDIF
(
MINGW
)
ENDIF
(
WIN32
)
IF
(
APPLE
)
SET
(
GERBVIEW_RESOURCES gerbview.r
)
...
...
kicad/CMakeLists.txt
View file @
cda4ed96
...
...
@@ -17,7 +17,16 @@ SET(KICAD_EXTRA_SRCS
../share/infospgm.cpp
)
IF
(
WIN32
)
SET
(
KICAD_RESOURCES kicad.rc
)
IF
(
MINGW
)
# resource compilation for mingw (http://www.cmake.org/Bug/view.php?id=4068)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/kicad_rc.o
COMMAND windres.exe -I
${
CMAKE_CURRENT_SOURCE_DIR
}
-i
${
CMAKE_CURRENT_SOURCE_DIR
}
/kicad.rc
-o
${
CMAKE_CURRENT_BINARY_DIR
}
/kicad_rc.o
)
SET
(
KICAD_RESOURCES
${
CMAKE_CURRENT_BINARY_DIR
}
/kicad_rc.o
)
ELSE
(
MINGW
)
SET
(
KICAD_RESOURCES kicad.rc
)
ENDIF
(
MINGW
)
ENDIF
(
WIN32
)
IF
(
APPLE
)
SET
(
KICAD_RESOURCES kicad.r
)
...
...
pcbnew/CMakeLists.txt
View file @
cda4ed96
...
...
@@ -149,7 +149,16 @@ SET(PCBNEW_EXTRA_SRCS
../share/zoom.cpp
)
IF
(
WIN32
)
SET
(
PCBNEW_RESOURCES pcbnew.rc
)
IF
(
MINGW
)
# resource compilation for mingw (http://www.cmake.org/Bug/view.php?id=4068)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/pcbnew_rc.o
COMMAND windres.exe -I
${
CMAKE_CURRENT_SOURCE_DIR
}
-i
${
CMAKE_CURRENT_SOURCE_DIR
}
/pcbnew.rc
-o
${
CMAKE_CURRENT_BINARY_DIR
}
/pcbnew_rc.o
)
SET
(
PCBNEW_RESOURCES
${
CMAKE_CURRENT_BINARY_DIR
}
/pcbnew_rc.o
)
ELSE
(
MINGW
)
SET
(
PCBNEW_RESOURCES pcbnew.rc
)
ENDIF
(
MINGW
)
ENDIF
(
WIN32
)
IF
(
APPLE
)
SET
(
PCBNEW_RESOURCES pcbnew.r
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment