include_directories( ${CMAKE_SOURCE_DIR}/configlib ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/utils) ########### next target ############### SET(cpp_sources ip_range.cpp stringfunc.cpp test_containerfunc.cpp test_cron_interval.cpp test_cron_point.cpp test_filefunc.cpp test_global_config.cpp test_i18n.cpp test_logging.cpp test_pidfile.cpp test_restricted_html.cpp test_pipestream.cpp test_timefunc.cpp test_tmpfstream.cpp test_tribool.cpp test_crypto.cpp ) if (IMAP_UTF7_SUPPORT) SET(cpp_sources stringfunc_imaputf7.cpp ${cpp_sources}) endif (IMAP_UTF7_SUPPORT) add_executable(test_i2ncommon ${cpp_sources}) # Add custom "make check" target which automatically builds the library add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS test_i2ncommon) # Invocation via "make test" enable_testing() add_test(test_i2ncommon test_i2ncommon) target_link_libraries(test_i2ncommon i2ncommon i2ncommon_utils i2ncommon_config ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES} )