Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CMakeLists.txt 797 B
#
# Project configuration for TestProject
#

#################
# PROJECT SETUP #
#################

# Only build this project if we are explicitly building the test project
if(build_test)

   # Set the minimum required CMake version
   cmake_minimum_required( VERSION 3.21 FATAL_ERROR )

   # Set the name of project and its version.
   project(TestProject VERSION 0.0.1)

   # Set Parent project
   set( ATLAS_PROJECT StatAnalysis
      CACHE STRING "The name of the parent project to build against" )

   # Find the StatAnalysis project.
   find_package( ${ATLAS_PROJECT} REQUIRED )

   atlas_ctest_setup()

   # Set up the TestProject
   atlas_project( TestProject 0.0.1
      USE ${ATLAS_PROJECT} ${${ATLAS_PROJECT}_VERSION} )

   atlas_cpack_setup()

   include(cmake/testing.cmake)

endif()