StateMachine using CMake and CLion