Skip to content

Commit 8eefea5

Browse files
committed
Merge branch 'master' of github.com:piql/afs into HEAD
2 parents 2368e08 + b569acb commit 8eefea5

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ project(afs C)
44

55
add_subdirectory(unboxing EXCLUDE_FROM_ALL)
66

7+
option(AFS_TESTS "Build tests" ${PROJECT_IS_TOP_LEVEL})
8+
79
if(WIN32)
810
set(WARNINGS /MP)
911
elseif(APPLE)
@@ -77,11 +79,7 @@ set_target_properties(afs minixml PROPERTIES
7779
C_STANDARD_REQUIRED ON
7880
)
7981

80-
if(PROJECT_IS_TOP_LEVEL)
81-
set(BUILD_TESTING ON)
82-
endif()
83-
84-
if(BUILD_TESTING)
82+
if(AFS_TESTS)
8583
enable_testing()
8684

8785
if(NOT WIN32 AND NOT APPLE)
@@ -122,7 +120,7 @@ if(BUILD_TESTING)
122120
COMMAND doxygen doxygen.dox
123121
DEPENDS doxygen.dox
124122
)
125-
add_custom_target(doxygen ALL DEPENDS doc/html/index.html)
123+
add_custom_target(afs_doxygen ALL DEPENDS doc/html/index.html)
126124
endif()
127125

128126
add_executable(assemblytool

0 commit comments

Comments
 (0)