File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ set(INCLUDE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include")
23
23
set (SOURCE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} /src" )
24
24
set (TEST_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} /test" )
25
25
26
+ option (ENABLE_COVERAGE "Enable -ftest-converage" OFF )
26
27
# enable coverage if requested
27
28
if (ENABLE_COVERAGE)
28
29
message ("-- Coverage enabled" )
@@ -50,11 +51,13 @@ set_target_properties(cwalk PROPERTIES PUBLIC_HEADER "${INCLUDE_DIRECTORY}/cwalk
50
51
set_target_properties (cwalk PROPERTIES DEFINE_SYMBOL CWK_EXPORTS)
51
52
52
53
# add shared library macro
54
+ option (BUILD_SHARED_LIBS "build shared libraries" OFF )
53
55
if (BUILD_SHARED_LIBS )
54
56
target_compile_definitions (cwalk PUBLIC CWK_SHARED)
55
57
endif ()
56
58
57
59
# enable tests
60
+ option (ENABLE_TESTS "enable unit tests" OFF )
58
61
if (ENABLE_TESTS)
59
62
message ("-- Tests enabled" )
60
63
enable_testing ()
Original file line number Diff line number Diff line change 1
1
# enable warnings
2
+ option (IGNORE_WARNINGS "Disable -Werror" OFF )
3
+
2
4
function (enable_warnings target )
3
5
if (MSVC )
4
6
target_compile_definitions (${target} PRIVATE _CRT_SECURE_NO_WARNINGS)
You can’t perform that action at this time.
0 commit comments