grim/gplate

trying to fix the path problem for templates in the include tests
add_definitions(
-DBUILD_DIR="\\"${CMAKE_CURRENT_BUILD_DIR}\\""
)
add_subdirectory(functions)
add_subdirectory(tags)
add_subdirectory(variables)
add_executable(test-gplate test-gplate.c)
target_link_libraries(test-gplate
${GLIB_LIBRARIES}
gplate
test-gplate-functions
test-gplate-tags
test-gplate-variables
)
###############################################################################
# Main Target
###############################################################################
set(GTESTER_TESTS "${TESTS}")
set(GTESTER_LOG "testgplate.log")
add_custom_target(tests ALL
COMMAND ${GTESTER} -k --verbose -o ${GTESTER_LOG} test-gplate
DEPENDS test-gplate
)