diff --git a/applications/CMakeLists.txt b/applications/CMakeLists.txt
index 27dac14b57b949f20d05a607541aef02cf09d05c..b9d47c0c96c056daf3199388d16d91c8fd7e1600 100644
--- a/applications/CMakeLists.txt
+++ b/applications/CMakeLists.txt
@@ -1,12 +1,14 @@
 SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
 
+add_executable (c8_air_shower c8_air_shower.cpp)
+target_link_libraries (c8_air_shower CORSIKA8)
+
 if(WITH_FLUKA)
   message("compiling c8_air_shower.cpp with FLUKA")
+  target_compile_definitions(c8_air_shower PRIVATE WITH_FLUKA)
 else()
   message("compiling c8_air_shower.cpp with UrQMD")
 endif()
-add_executable (c8_air_shower c8_air_shower.cpp)
-target_link_libraries (c8_air_shower CORSIKA8)
 
 install (
   TARGETS c8_air_shower DESTINATION bin