Makefile not available but examples are running

When I built the examples according to the guide as following:

||$ cd $HOME|
||$ mkdir B1-build|
||$ cd $HOME/B1-build|
||$ cmake -DCMAKE_PREFIX_PATH=/home/you/geant4-install $HOME/B1
||$ cmake --build . --config Release|

everything works fo far fine. I can run the examples e.g. via

||$ cd $HOME/B1-build|

though I have to copy the files init_vis.mac and vis.mac into the Release folder. But I always lack a Makefile so I can’t run

||$ HOME/B1-build|make -j4

or the like. Why is that?

Directory of C:\geant4\B1-build

01.06.2022 15:37 .
01.06.2022 15:37 …
01.06.2022 15:37 23.447 ALL_BUILD.vcxproj
31.05.2022 10:28 267 ALL_BUILD.vcxproj.filters
31.05.2022 10:28 4.832 B1.sln
01.06.2022 15:37 26.948 B1.vcxproj
31.05.2022 10:28 645 B1.vcxproj.filters
01.06.2022 15:37 15.079 CMakeCache.txt
01.06.2022 15:40 CMakeFiles
31.05.2022 10:28 2.397 cmake_install.cmake
31.05.2022 10:56 exampleB1.dir
31.05.2022 10:28 226 exampleB1.in
01.06.2022 15:37 41.501 exampleB1.out
01.06.2022 15:37 43.489 exampleB1.vcxproj
31.05.2022 10:28 2.159 exampleB1.vcxproj.filters
01.06.2022 15:55 1.992 G4History.macro
31.05.2022 10:28 338 init_vis.mac
31.05.2022 10:28 10.020 INSTALL.vcxproj
31.05.2022 10:28 509 INSTALL.vcxproj.filters
01.06.2022 15:10 Release
31.05.2022 10:56 RelWithDebInfo
31.05.2022 10:28 553 run1.mac
31.05.2022 10:28 448 run2.mac
31.05.2022 10:28 3.931 vis.mac
31.05.2022 10:56 x64
01.06.2022 15:37 23.123 ZERO_CHECK.vcxproj
31.05.2022 10:28 510 ZERO_CHECK.vcxproj.filters
20 File(s) 202.414 bytes
7 Dir(s) 88.140.185.600 bytes free

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.