-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
27 lines (19 loc) · 880 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
project(libunfo)
cmake_minimum_required (VERSION 2.6)
include (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake)
include (${CMAKE_SOURCE_DIR}/version.cmake)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --pedantic --std=c99 -Wall -Wextra -O2 -fno-strict-aliasing -g")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -gdb -O0")
set(VERSION "${libunfo_VERSION_MAJOR}.${libunfo_VERSION_MINOR}.${libunfo_VERSION_PATCH}")
set(ZLIB_SUPPORT YES)
include_directories("${PROJECT_BINARY_DIR}")
include_directories("${PROJECT_BINARY_DIR}/src")
find_package(LibXml2 REQUIRED)
message("xml2dirs ${LIBXML2_INCLUDE_DIR}")
include_directories(${LIBXML2_INCLUDE_DIR})
add_custom_target(ctest DEPENDS test_parse_run test_doc_run)
add_custom_target(pytest DEPENDS test_py_run)
add_custom_target(test DEPENDS ctest pytest)
add_subdirectory(src)
add_subdirectory(tests)
add_subdirectory(docs EXCLUDE_FROM_ALL)