Added ctest so we now have a 'make test' target for running tests.
This commit is contained in:
		@@ -23,13 +23,13 @@ target_include_directories(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
set(HEADER_BASE "${CMAKE_CURRENT_SOURCE_DIR}/include")
 | 
					set(HEADER_BASE "${CMAKE_CURRENT_SOURCE_DIR}/include")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					include(CTest)
 | 
				
			||||||
if(SPDLOG_BUILD_EXAMPLES)
 | 
					if(SPDLOG_BUILD_EXAMPLES)
 | 
				
			||||||
  enable_testing()
 | 
					    add_subdirectory(example)
 | 
				
			||||||
  add_subdirectory(example)
 | 
					 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if(SPDLOG_BUILD_TESTS)
 | 
					if(SPDLOG_BUILD_TESTS)
 | 
				
			||||||
	add_subdirectory(tests)
 | 
					    add_subdirectory(tests)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Install ###
 | 
					### Install ###
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user