We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2368e08 + b569acb commit 8eefea5Copy full SHA for 8eefea5
1 file changed
CMakeLists.txt
@@ -4,6 +4,8 @@ project(afs C)
4
5
add_subdirectory(unboxing EXCLUDE_FROM_ALL)
6
7
+option(AFS_TESTS "Build tests" ${PROJECT_IS_TOP_LEVEL})
8
+
9
if(WIN32)
10
set(WARNINGS /MP)
11
elseif(APPLE)
@@ -77,11 +79,7 @@ set_target_properties(afs minixml PROPERTIES
77
79
C_STANDARD_REQUIRED ON
78
80
)
81
-if(PROJECT_IS_TOP_LEVEL)
- set(BUILD_TESTING ON)
82
-endif()
83
-
84
-if(BUILD_TESTING)
+if(AFS_TESTS)
85
enable_testing()
86
87
if(NOT WIN32 AND NOT APPLE)
@@ -122,7 +120,7 @@ if(BUILD_TESTING)
122
120
COMMAND doxygen doxygen.dox
123
121
DEPENDS doxygen.dox
124
125
- add_custom_target(doxygen ALL DEPENDS doc/html/index.html)
+ add_custom_target(afs_doxygen ALL DEPENDS doc/html/index.html)
126
endif()
127
128
add_executable(assemblytool
0 commit comments