Browse Source

Removed the test and check targets. Not using ctest anymore

Akshay 10 months ago
parent
commit
f2179cf624
2 changed files with 2 additions and 14 deletions
  1. 0 2
      CMakeLists.txt
  2. 2 12
      test/CMakeLists.txt

+ 0 - 2
CMakeLists.txt

@@ -5,8 +5,6 @@ project(Lithe
 
 set(CMAKE_CXX_FLAGS "-std=c++11")
 
-enable_testing()
-
 # Declare the library
 file(GLOB lithe_sources ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp )
 add_library(lithe_core STATIC ${lithe_sources} )

+ 2 - 12
test/CMakeLists.txt

@@ -1,8 +1,3 @@
-# Custom target for building and running tests
-if( NOT TARGET check)
-add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
-endif()
-
 # Glob for the test sources
 file(GLOB TEST_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/**/*.cpp)
 
@@ -11,15 +6,10 @@ list(REMOVE_ITEM TEST_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/testTemplate/testTemplate
 
 set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
 
-ADD_EXECUTABLE(lithe_testrunner ${TEST_SRCS})
+ADD_EXECUTABLE(lithe_tests ${TEST_SRCS})
 
-TARGET_LINK_LIBRARIES(lithe_testrunner
+TARGET_LINK_LIBRARIES(lithe_tests
 	PUBLIC
 	lithe_core
 	gtest_main
 )
-
-add_test(NAME lithe_testrunner 
-		COMMAND lithe_testrunner)
-
-add_dependencies(check lithe_testrunner)