Commit 862a9a12 authored by Julian Helfferich's avatar Julian Helfferich 💬
Browse files

Do not use file(GLOB ...) to set source files

The CMake documentation *strongly* discourages this. When using GLOB,
CMake would not recompile if a new source file is added and the
CONFIGURE_DEPENDS flag may not work reliably.
parent 140ffb31
file(GLOB_RECURSE kblocks_src_files *.cpp)
set(kblocks_src_files
AI/KBlocksAIEvaluation.cpp
AI/KBlocksAIFeature.cpp
AI/KBlocksAILog.cpp
AI/KBlocksAIPlanner.cpp
AI/KBlocksAIPlannerExtend.cpp
AI/KBlocksAIPlayer.cpp
KBlocksAnimator.cpp
KBlocksAnimDrop.cpp
KBlocksAnimFade.cpp
KBlocksAppThread.cpp
KBlocksConfigManager.cpp
KBlocksDefine.cpp
KBlocksDisplay.cpp
KBlocksDummyAI.cpp
KBlocksField.cpp
KBlocksGameLogic.cpp
KBlocksGameMessage.cpp
KBlocksGameRecorder.cpp
KBlocksGameReplayer.cpp
KBlocksGraphics.cpp
KBlocksItemGroup.cpp
KBlocksKeyboardPlayer.cpp
KBlocksLayout.cpp
KBlocksNetClient.cpp
KBlocksNetPlayer.cpp
KBlocksNetServer.cpp
KBlocksPiece.cpp
KBlocksPieceGenerator.cpp
KBlocksPlayManager.cpp
KBlocksPlayNetwork.cpp
KBlocksRepWin.cpp
KBlocksScene.cpp
KBlocksScore.cpp
KBlocksSingleGame.cpp
KBlocksSinglePlayer.cpp
KBlocksSound.cpp
KBlocksSvgItem.cpp
KBlocksView.cpp
KBlocksWin.cpp
main.cpp
utils.cpp)
list(TRANSFORM kblocks_src_files PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/")
set(kblocks_SRCS ${kblocks_src_files} PARENT_SCOPE)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment