Skip to content

Commit b97068d

Browse files
author
Luis Díaz Más
committedSep 18, 2014
Small changes
1 parent d190578 commit b97068d

File tree

4 files changed

+14
-25
lines changed

4 files changed

+14
-25
lines changed
 

‎CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ INCLUDE(cmake/buildFiles.cmake REQUIRED)
1212

1313
ADD_SUBDIRECTORY(src)
1414
ADD_SUBDIRECTORY(tests)
15-
#ADD_SUBDIRECTORY(utils)
15+
ADD_SUBDIRECTORY(utils)
1616

1717
INCLUDE(cmake/printInfo.cmake REQUIRED)
1818

‎cmake/options.cmake

+8-7
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ OPTION(ENABLE_COVERAGE_XML "Perform code coverage in XML for jenkins integration
2424

2525
OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON)
2626
OPTION(BUILD_TESTS "Build unitary & integration tests with gtest" OFF)
27-
28-
OPTION(INSTALL_DOC "Install documentation in system" OFF)
29-
OPTION(DOXY_COVERAGE "Generate text file with the doxygen coverage" OFF)
30-
OPTION(USE_MATHJAX "Generate doc-formulas via mathjax instead of latex" OFF)
31-
OPTION(USE_DOT "Diagram generation with graphviz" ON)
32-
OPTION(USE_LATEX "Build latex documentation" OFF)
33-
OPTION(USE_CHM "Build CHM Windows documentation" OFF)
27+
OPTION(BUILD_UTILS "Build utilities & applications" OFF)
28+
29+
OPTION(INSTALL_DOC "Install documentation in system" OFF)
30+
OPTION(DOXY_COVERAGE "Generate text file with the doxygen coverage" OFF)
31+
OPTION(USE_MATHJAX "Generate doc-formulas via mathjax instead of latex" OFF)
32+
OPTION(USE_DOT "Diagram generation with graphviz" ON)
33+
OPTION(USE_LATEX "Build latex documentation" OFF)
34+
OPTION(USE_CHM "Build CHM Windows documentation" OFF)
3435

3536
# ----------------------------------------------------------------------------
3637
# Code coverage

‎cmake/printInfo.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ MESSAGE( STATUS )
1717
MESSAGE( STATUS "USE_CLANG = ${USE_CLANG}" )
1818
MESSAGE( STATUS "BUILD_SHARED_LIBS = ${BUILD_SHARED_LIBS}" )
1919
MESSAGE( STATUS "BUILD_TESTS = ${BUILD_TESTS}" )
20+
MESSAGE( STATUS "BUILD_UTILS = ${BUILD_UTILS}" )
2021
MESSAGE( STATUS "WARNINGS_ANSI_ISO = ${WARNINGS_ANSI_ISO}" )
2122
MESSAGE( STATUS "WARNINGS_ARE_ERRORS = ${WARNINGS_ARE_ERRORS}" )
2223
MESSAGE( STATUS "CMAKE_SYSTEM_PROCESSOR = ${CMAKE_SYSTEM_PROCESSOR}" )

‎utils/CMakeLists.txt

+4-17
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
1-
IF(BUILD_TESTS)
2-
3-
IF(NOT GTEST_FOUND)
4-
MESSAGE(WARNING "GTest is not installed in your system so tests can't be compiled")
5-
ELSE()
6-
7-
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)
8-
INCLUDE_DIRECTORIES(SYSTEM ${GTEST_INCLUDE_DIRS})
9-
LINK_LIBRARIES(${ARGTABLE} ${GTEST_BOTH_LIBRARIES} ${PROJECT_NAME})
10-
11-
ADD_EXECUTABLE(tests tests_main.cpp)
12-
13-
ADD_CUSTOM_TARGET(tests_xml COMMAND tests --xml --gtest_output=xml
14-
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
15-
ENDIF()
16-
17-
ENDIF()
1+
if(BUILD_UTILS)
182

3+
add_executable(xml_join xml_join.cpp)
4+
target_link_libraries(xml_join ${PROJECT_NAME})
195

6+
endif()

0 commit comments

Comments
 (0)
Please sign in to comment.