CMakeLists.txt 621 Bytes
Newer Older
Brad King's avatar
Brad King committed
1
2
3
4
5
6
7
8
# Disable warnings to avoid changing 3rd party code.
IF(CMAKE_C_COMPILER_ID MATCHES
    "^(GNU|Clang|AppleClang|XL|VisualAge|SunPro|MIPSpro|HP|Intel)$")
  SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
  SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
ENDIF()

9
include(ConfigureChecks.cmake)
10
11
12
if(NOT WIN32)
  add_definitions(-DXML_DEV_URANDOM)
endif()
13

14
15
16
17
include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/lib
  )
18

19
add_library(cmexpat STATIC
20
  lib/loadlibrary.c
21
22
23
24
25
26
  lib/xmlparse.c
  lib/xmlrole.c
  lib/xmltok.c
  lib/xmltok_impl.c
  lib/xmltok_ns.c
  )