Skip to content

Commit

Permalink
- add option BUILD_TESTING
Browse files Browse the repository at this point in the history
  • Loading branch information
gaede committed Feb 18, 2015
1 parent 26e3939 commit 11c4399
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)



#---Options-------------------------------------------------------------------------

option(BUILD_TESTING "Enable and build tests" ON)

#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

find_package( DD4hep REQUIRED)
Expand Down Expand Up @@ -124,6 +128,15 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/this${PackageName}.sh
)


#---Testing-------------------------------------------------------------------------
if(BUILD_TESTING)

include(CTest)
enable_testing()
#add_subdirectory(DDTest)

endif(BUILD_TESTING)

#--- install target-------------------------------------


Expand Down

0 comments on commit 11c4399

Please sign in to comment.