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
77cb86a1
Commit
77cb86a1
authored
Nov 07, 2007
by
plyatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Draft files for CMake build system support
parent
3823d660
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
150 additions
and
0 deletions
+150
-0
CMakeLists.txt
CMakeLists.txt
+68
-0
CMakeLists.txt
common/CMakeLists.txt
+51
-0
CMakeLists.txt
kicad/CMakeLists.txt
+31
-0
No files found.
CMakeLists.txt
0 → 100644
View file @
77cb86a1
##---------------------------------------------------------------------------
## $RCSfile: CMakeLists.txt $
## $Source: CMakeLists.txt $
## $Revision: 1.48 $
## $Date: Feb 26, 2006 10:39:43 PM $
##---------------------------------------------------------------------------
## Author: Jorgen Bodde
## Copyright: (c) Jorgen Bodde
## License: wxWidgets License
##---------------------------------------------------------------------------
##---------------------------------------------------
## Please set your wxWidgets configuration here
##---------------------------------------------------
SET
(
CMAKE_FIND_LIBRARY_PREFIXES
""
)
SET
(
CMAKE_FIND_LIBRARY_SUFFIXES
".lib"
)
# Here you can define what libraries of wxWidgets you need for your
# application. You can figure out what libraries you need here;
# http://www.wxwidgets.org/manuals/2.8/wx_librarieslist.html
SET
(
wxWidgets_USE_LIBS base core gl net
)
# We need the Find package for wxWidgets to work
FIND_PACKAGE
(
wxWidgets
)
##---------------------------------------------------
## Actual config file starts here
##---------------------------------------------------
# Did we find wxWidgets ? This condition will fail
# for as long as the internal vars do not point to
# the proper wxWidgets configuration
IF
(
wxWidgets_FOUND
)
# Include wxWidgets macros
INCLUDE
(
${
wxWidgets_USE_FILE
}
)
# Our project is called 'minimal' this is how it will be called in
# visual studio, and in our makefiles.
PROJECT
(
KICAD_EDA
)
# We define the include paths here, our minimal source dir is one,
# and also the include dirs defined by wxWidgets
INCLUDE_DIRECTORIES
(
#${KICAD_EDA_SOURCE_DIR}/include
#${KICAD_EDA_SOURCE_DIR}/common
#${KICAD_EDA_SOURCE_DIR}/share
#${KICAD_EDA_SOURCE_DIR}/kicad/bitmaps
#${KICAD_EDA_SOURCE_DIR}/common/bitmaps
${
CMAKE_BINARY_DIR
}
${
CMAKE_SOURCE_DIR
}
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/common
#${CMAKE_SOURCE_DIR}/share
${
CMAKE_SOURCE_DIR
}
/kicad/bitmaps
${
CMAKE_SOURCE_DIR
}
/common/bitmaps
${
wxWidgets_INCLUDE_DIRS
}
)
ELSE
(
wxWidgets_FOUND
)
# For convenience. When we cannot continue, inform the user
MESSAGE
(
"wxWidgets not found!"
)
ENDIF
(
wxWidgets_FOUND
)
add_subdirectory
(
common
)
add_subdirectory
(
kicad
)
#SUBDIRS(common kicad)
common/CMakeLists.txt
0 → 100644
View file @
77cb86a1
# We define the include paths here, our minimal source dir is one,
# and also the include dirs defined by wxWidgets
#INCLUDE_DIRECTORIES()
# For convenience we define the sources as a variable. You can add
# header files and cpp / c files and CMake will sort them out
SET
(
SRCS confirm
base_struct
copy_to_clipboard
basicframe
common_plot_functions
common_plotPS_functions
common_plotHPGL_functions
hotkeys_basic
drawtxt
wxwineda
string
gr_basic
gestfich
trigo
selcolor
bitmaps
common
eda_doc
toolbars
displlst
edaappl
block_commande
msgpanel
projet_config
get_component_dialog
eda_dde
worksheet
base_screen
dcsvg
)
# If we build for windows systems, we also include the resource file
# containing the manifest, icon and other resources
#IF(WIN32)
# SET(SRCS ${SRCS} kicad.rc)
#ENDIF(WIN32)
# Here we define the executable kicad.exe or kicad on other systems
# the above paths and defines will be used in this build
ADD_LIBRARY
(
common
${
SRCS
}
)
# We add to our target 'kicad' the wxWidgets libraries. These are
# set for us by the find script. If you need other libraries, you
# can add them here as well.
#TARGET_LINK_LIBRARIES(kicad ${wxWidgets_LIBRARIES} )
kicad/CMakeLists.txt
0 → 100644
View file @
77cb86a1
# For convenience we define the sources as a variable. You can add
# header files and cpp / c files and CMake will sort them out
SET
(
SRCS kicad
treeprj_frame
treeprj_datas
buildmnu
../share/infospgm
mainframe
prjconfig
preferences
commandframe
files-io
)
# If we build for windows systems, we also include the resource file
# containing the manifest, icon and other resources
IF
(
WIN32
)
SET
(
SRCS
${
SRCS
}
kicad.rc
)
ENDIF
(
WIN32
)
# Here we define the executable kicad.exe or kicad on other systems
# the above paths and defines will be used in this build
ADD_EXECUTABLE
(
kicad WIN32
${
SRCS
}
)
# We add to our target 'kicad' the wxWidgets libraries. These are
# set for us by the find script. If you need other libraries, you
# can add them here as well.
TARGET_LINK_LIBRARIES
(
kicad
${
wxWidgets_LIBRARIES
}
)
LINK_DIRECTORIES
(
${
KICAD_EDA_BINARY_DIR
}
/common
)
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