~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to cmake/wxexpat.cmake

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Part of the wxWidgets-CMake project
 
3
#
 
4
# (c)2013 Brian Sidebotham
 
5
#
 
6
# Provided under the wxWindows licence
 
7
# http://opensource.org/licenses/wxwindows.php
 
8
# A copy of the licence can also be found in the LICENCE file
 
9
#
 
10
 
 
11
set( EXPAT_NAME wxexpat${WXBUILD} )
 
12
 
 
13
set( EXPAT_SOURCES
 
14
    ${PROJECT_SOURCE_DIR}/src/expat/lib/xmlparse.c
 
15
    ${PROJECT_SOURCE_DIR}/src/expat/lib/xmlrole.c
 
16
    ${PROJECT_SOURCE_DIR}/src/expat/lib/xmltok.c
 
17
    )
 
18
 
 
19
add_library( ${EXPAT_NAME} STATIC ${EXPAT_SOURCES} )
 
20
 
 
21
add_target_definition( ${EXPAT_NAME} COMPILED_FROM_DSP )
 
22
 
 
23
set_target_properties( ${EXPAT_NAME}
 
24
    PROPERTIES
 
25
    COMPILE_DEFINITIONS "${${EXPAT_NAME}_DEFINES}" )
 
26
 
 
27
set( EXPAT_LIBS ${EXPAT_NAME} )
 
28
set( EXPAT_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/expat/lib )