From d82a4a8f6a3a0f1c1aacdb1955bfc5e715160268 Mon Sep 17 00:00:00 2001
From: Hans Dembinski <hans.dembinski@gmail.com>
Date: Wed, 22 May 2019 10:42:29 +0200
Subject: [PATCH] fix

---
 Processes/ParticleCut/CMakeLists.txt | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Processes/ParticleCut/CMakeLists.txt b/Processes/ParticleCut/CMakeLists.txt
index 48b539b47..ffecd7909 100644
--- a/Processes/ParticleCut/CMakeLists.txt
+++ b/Processes/ParticleCut/CMakeLists.txt
@@ -48,10 +48,10 @@ install (
 
 # --------------------
 # code unit testing
-add_executable (testParticleCut
+CORSIKA_ADD_TEST(testParticleCut SOURCES
   testParticleCut.cc
   ${MODEL_HEADERS}
-  )
+)
 
 target_link_libraries (
   testParticleCut
@@ -64,4 +64,3 @@ target_link_libraries (
   CORSIKAenvironment
   CORSIKAthirdparty # for catch2
   )
-CORSIKA_ADD_TEST(testParticleCut)
-- 
GitLab