CMakeLists.txt revision 14d987a7eb2831892a63e804779b279f0fde3fc8
# -----------------------------------------------------------------------------
#
# -----------------------------------------------------------------------------
set(CMAKE_CTEST_COMMAND ctest -V)
add_subdirectory(${GMOCK_DIR} ${CMAKE_BINARY_DIR}/gmock)
include_directories(SYSTEM ${GMOCK_DIR}/gtest/include
${GMOCK_DIR}/include)
# copied from ../src/CMakeLists.txt
# TODO resolve to shared definition
set(sp_SRC
# -------
# Headers
)
# copied from ../src/CMakeLists.txt
# TODO resolve to shared definition
set(inkscape_SRC
# -------
# Headers
)
get_property(inkscape_global_SRC GLOBAL PROPERTY inkscape_global_SRC)
set_source_files_properties(
${CMAKE_BINARY_DIR}/src/inkscape-version.cpp
PROPERTIES GENERATED TRUE)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/__/src)
add_executable(unittest
${inkscape_SRC}
${sp_SRC}
${inkscape_global_SRC}
${CMAKE_BINARY_DIR}/src/inkscape-version.cpp
)
add_dependencies(unittest inkscape_version)
target_link_libraries(unittest
gmock_main
# order from automake
#sp_LIB
nrtype_LIB
#inkscape_LIB
#sp_LIB # annoying, we need both!
nrtype_LIB # annoying, we need both!
croco_LIB
avoid_LIB
gdl_LIB
cola_LIB
vpsc_LIB
livarot_LIB
uemf_LIB
2geom_LIB
depixelize_LIB
util_LIB
gc_LIB
${INKSCAPE_LIBS}
)
add_test(BaseTest ${EXECUTABLE_OUTPUT_PATH}/unittest)
add_dependencies(check unittest)
#