@@ -43,35 +43,38 @@ add_custom_target (example)
43
43
add_dependencies (example munkres.bin )
44
44
45
45
46
- # Enable the ExternalProject_Add directive.
47
- # Which used for getting external tools for the Project.
48
- include (ExternalProject )
46
+ option (MUNKRESCPP_DEVEL_MODE "Configure project in development mode." OFF )
47
+ if (MUNKRESCPP_DEVEL_MODE )
48
+ # Enable the ExternalProject_Add directive.
49
+ # Which used for getting external tools for the Project.
50
+ include (ExternalProject )
49
51
50
52
51
- # Testing
52
- add_subdirectory (tests )
53
+ # Testing
54
+ add_subdirectory (tests )
53
55
54
56
55
- # Benchmarking
56
- add_subdirectory (benchmarks )
57
+ # Benchmarking
58
+ add_subdirectory (benchmarks )
57
59
58
60
59
- # Custom target to build everything.
60
- add_custom_target (full )
61
- add_dependencies (
62
- full
63
- munkres
64
- example
65
- tests
66
- benchmarks
67
- )
61
+ # Custom target to build everything.
62
+ add_custom_target (full )
63
+ add_dependencies (
64
+ full
65
+ munkres
66
+ example
67
+ tests
68
+ benchmarks
69
+ )
68
70
69
71
70
- # Static code analyse.
71
- set (CppCheck_REPORT ${PROJECT_BINARY_DIR} /cppcheck.report )
72
- add_custom_command (
73
- OUTPUT ${CppCheck_REPORT}
74
- COMMAND cppcheck ${MunkresCppLib_SOURCES} ${MunkresCppBin_SOURCES} -I${PROJECT_SOURCE_DIR}/src -I${PROJECT_SOURCE_DIR} --enable=all --force --inconclusive > cppcheck.report 2>&1
75
- )
76
- add_custom_target (cppcheck DEPENDS ${CppCheck_REPORT} )
77
- set_directory_properties (PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CppCheck_REPORT} )
72
+ # Static code analyse.
73
+ set (CppCheck_REPORT ${PROJECT_BINARY_DIR} /cppcheck.report )
74
+ add_custom_command (
75
+ OUTPUT ${CppCheck_REPORT}
76
+ COMMAND cppcheck ${MunkresCppLib_SOURCES} ${MunkresCppBin_SOURCES} -I${PROJECT_SOURCE_DIR}/src -I${PROJECT_SOURCE_DIR} --enable=all --force --inconclusive > cppcheck.report 2>&1
77
+ )
78
+ add_custom_target (cppcheck DEPENDS ${CppCheck_REPORT} )
79
+ set_directory_properties (PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CppCheck_REPORT} )
80
+ endif ()
0 commit comments