terom@59: # policy terom@59: cmake_minimum_required (VERSION 2.6) terom@59: terom@59: # project attributes terom@59: project (evirc C) terom@59: terom@59: # cmake paths terom@186: set (CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/") terom@186: terom@186: # setup options terom@186: option (ENABLE_DOC "Generate Doxygen documentation" ON) terom@186: option (ENABLE_TEST "Build test binary" ON) terom@186: option (ENABLE_TEST_COVERAGE "Build test binary with instrumentation for code coverage analysis" ON) terom@59: terom@59: # add the subdirs terom@59: add_subdirectory (src) terom@59: terom@186: if (ENABLE_DOC) terom@186: add_subdirectory (doc) terom@186: terom@186: endif (ENABLE_DOC) terom@186: terom@186: if (ENABLE_TEST) terom@186: add_subdirectory (test) terom@186: terom@186: endif (ENABLE_TEST)